Skip to content

Commit

Permalink
[fix] #154 포킷, 리마인드 feature 중복 초기화 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ShapeKim98 committed Nov 6, 2024
1 parent f2063d4 commit acc05d3
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,16 @@ private extension MainTabSplitFeature {
func handleViewAction(_ action: Action.View, state: inout State) -> Effect<Action> {
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 {
Expand Down

0 comments on commit acc05d3

Please sign in to comment.