Skip to content

Commit 6d9b5e3

Browse files
committed
fix: 에러가 발생했을 때 에러가 나면 얼럿이 떠야 하므로 미리 얼럿을 끔
1 parent 8d4574c commit 6d9b5e3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

DevLog/Presentation/ViewModel/SettingViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ final class SettingViewModel: Store {
7373
setAlert(&state, isPresented: true, type: .removeCache)
7474
case .confirmRemoveCache:
7575
do {
76+
setAlert(&state, isPresented: false)
7677
try clearCacheDirectory()
7778
state.dirSize = dirSizeInBytes()
78-
setAlert(&state, isPresented: false)
7979
} catch {
8080
setAlert(&state, isPresented: true, type: .error)
8181
}

0 commit comments

Comments
 (0)