Skip to content

Commit 9ce11ca

Browse files
committed
refactor: 혹시나 하는 nil 방어
1 parent 800d313 commit 9ce11ca

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Application/DevLogPresentation/Sources/Main/MainView.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,9 @@ private extension MainView {
343343
Binding(
344344
get: { selectedTab },
345345
set: { tab in
346-
selectedTab = tab
346+
if let tab {
347+
selectedTab = tab
348+
}
347349
}
348350
)
349351
}

0 commit comments

Comments
 (0)