Skip to content

Commit f2fb933

Browse files
committed
Fix couple of uses of $state.value instead of state.
1 parent b07fd03 commit f2fb933

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/ComposableArchitecture/UIKit/IfLetUIKit.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ extension Store {
5151
}
5252
)
5353
.startWithValues { store in
54-
if store.$state.value == nil { `else`() }
54+
if store.state == nil { `else`() }
5555
}
5656

5757
let unwrapDisposable =

Tests/ComposableArchitectureTests/StoreTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ final class StoreTests: XCTestCase {
239239
.ifLet(
240240
then: { store in
241241
stores.append(store)
242-
outputs.append(store.$state.value)
242+
outputs.append(store.state)
243243
},
244244
else: {
245245
outputs.append(nil)

0 commit comments

Comments
 (0)