Skip to content

Commit 30a7553

Browse files
committed
♻️ [refactor] 체크박스 선택 확인 로직 긍정문으로 개선
1 parent 5e554d5 commit 30a7553

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Fitfty/Projects/Setting/Sources/Admin/Views/ReportListCell.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ final class ReportListCell: UITableViewCell {
8585
}
8686

8787
@objc func didTapCheckbox(_ sender: Any?) {
88-
if !checkBoxButton.isSelected {
89-
checkBoxButton.setImage(CommonAsset.Images.btnCheckBoxSelected.image, for: .normal)
90-
} else {
88+
if checkBoxButton.isSelected {
9189
checkBoxButton.setImage(CommonAsset.Images.btnCheckBoxUnSelected.image, for: .normal)
90+
} else {
91+
checkBoxButton.setImage(CommonAsset.Images.btnCheckBoxSelected.image, for: .normal)
9292
}
9393
}
9494

0 commit comments

Comments
 (0)