From dd70e42ddbcd5d819b146381c9162dd3399b3919 Mon Sep 17 00:00:00 2001 From: Rui Peres Date: Tue, 11 Jun 2024 21:35:20 +0100 Subject: [PATCH] `state` is not defined --- .../03-SyncUpForm/TestingSyncUpForm-02-code-0007.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/ComposableArchitecture/Documentation.docc/Tutorials/BuildingSyncUps/03-SyncUpForm/TestingSyncUpForm-02-code-0007.swift b/Sources/ComposableArchitecture/Documentation.docc/Tutorials/BuildingSyncUps/03-SyncUpForm/TestingSyncUpForm-02-code-0007.swift index 55fcfba62a6c..a6022c242a36 100644 --- a/Sources/ComposableArchitecture/Documentation.docc/Tutorials/BuildingSyncUps/03-SyncUpForm/TestingSyncUpForm-02-code-0007.swift +++ b/Sources/ComposableArchitecture/Documentation.docc/Tutorials/BuildingSyncUps/03-SyncUpForm/TestingSyncUpForm-02-code-0007.swift @@ -18,8 +18,8 @@ class SyncUpFormTests: XCTestCase { } await store.send(.addAttendeeButtonTapped) { - state.focus = .attendee(Attendee.ID(0)) - state.syncUp.attendees.append(Attendee(id: Attendee.ID(0))) + $0.focus = .attendee(Attendee.ID(0)) + $0.syncUp.attendees.append(Attendee(id: Attendee.ID(0))) } }