Skip to content

Commit

Permalink
[Fix] #244 - nested closure 로직 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongdung-eo committed Mar 24, 2024
1 parent 213d443 commit 815fccd
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,8 @@ private extension MyPageAccountViewController {
cell.configure(data: item)
cell.switchTapped
.receive(on: RunLoop.main)
.sink { [weak self] isOn in
guard let self else { return }
self.switchButtonTapped.send(isOn)
.sink { isOn in
self?.switchButtonTapped.send(isOn)
}
.store(in: &cell.cancelBag)
}
Expand Down

0 comments on commit 815fccd

Please sign in to comment.