From acc05d31f2f926bdb84004520718eb9b6d4e4f8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=8F=84=ED=98=95?= <108233361+ShapeKim98@users.noreply.github.com> Date: Sun, 27 Oct 2024 20:16:41 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20#154=20=ED=8F=AC=ED=82=B7,=20=EB=A6=AC?= =?UTF-8?q?=EB=A7=88=EC=9D=B8=EB=93=9C=20feature=20=EC=A4=91=EB=B3=B5=20?= =?UTF-8?q?=EC=B4=88=EA=B8=B0=ED=99=94=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MainTabSplit/MainTab/MainTabSplitFeature.swift | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Projects/App/Sources/MainTabSplit/MainTab/MainTabSplitFeature.swift b/Projects/App/Sources/MainTabSplit/MainTab/MainTabSplitFeature.swift index 7f4bbb48..bbad45d7 100644 --- a/Projects/App/Sources/MainTabSplit/MainTab/MainTabSplitFeature.swift +++ b/Projects/App/Sources/MainTabSplit/MainTab/MainTabSplitFeature.swift @@ -101,10 +101,16 @@ private extension MainTabSplitFeature { func handleViewAction(_ action: Action.View, state: inout State) -> Effect { switch action { case .포킷_버튼_눌렀을때: - state = .pokit(.init()) + switch state { + case .pokit: return .none + case .remind: state = .pokit(.init()) + } return .none case .리마인드_버튼_눌렀을때: - state = .remind(.init()) + switch state { + case .pokit: state = .remind(.init()) + case .remind: return .none + } return .none case .추가_버튼_눌렀을때: switch state {