From 762f6b26c0c34e0bbd84977f19351afecd0a2470 Mon Sep 17 00:00:00 2001 From: shlee Date: Wed, 12 Apr 2023 10:05:59 +0900 Subject: [PATCH 1/2] Fix typo in RxStateExample --- .../{ErrorStateManagment.swift => ErrorStateManagement.swift} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename RxStateExample/RxStateExample/StateManagment/{ErrorStateManagment.swift => ErrorStateManagement.swift} (97%) diff --git a/RxStateExample/RxStateExample/StateManagment/ErrorStateManagment.swift b/RxStateExample/RxStateExample/StateManagment/ErrorStateManagement.swift similarity index 97% rename from RxStateExample/RxStateExample/StateManagment/ErrorStateManagment.swift rename to RxStateExample/RxStateExample/StateManagment/ErrorStateManagement.swift index a6e5894..c7de178 100644 --- a/RxStateExample/RxStateExample/StateManagment/ErrorStateManagment.swift +++ b/RxStateExample/RxStateExample/StateManagment/ErrorStateManagement.swift @@ -32,7 +32,7 @@ extension Store { case addSilentError(silentError: Error) } - static func reduce(state: Store.ErrorState, sction: Store.ErrorAction) -> Store.ErrorState { + static func reduce(state: Store.ErrorState, action: Store.ErrorAction) -> Store.ErrorState { switch sction { case let .addPresentError(error): var state = state From 8b78b8e1f06037439dc34a2b7616c5c5ab4fbfff Mon Sep 17 00:00:00 2001 From: shlee Date: Wed, 12 Apr 2023 10:23:58 +0900 Subject: [PATCH 2/2] Fix typo in RxStateExample --- .../RxStateExample/StateManagment/ErrorStateManagement.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RxStateExample/RxStateExample/StateManagment/ErrorStateManagement.swift b/RxStateExample/RxStateExample/StateManagment/ErrorStateManagement.swift index c7de178..54184ff 100644 --- a/RxStateExample/RxStateExample/StateManagment/ErrorStateManagement.swift +++ b/RxStateExample/RxStateExample/StateManagment/ErrorStateManagement.swift @@ -33,7 +33,7 @@ extension Store { } static func reduce(state: Store.ErrorState, action: Store.ErrorAction) -> Store.ErrorState { - switch sction { + switch action { case let .addPresentError(error): var state = state state.presentableError = error