Skip to content

Commit

Permalink
[Fix] #289 - 에러 스타일은 가격 텍스트필드일 때만 적용되도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
EunsuSeo01 committed Nov 15, 2024
1 parent 4263a3d commit 624a152
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ private extension ModifyMenuTextField {
private extension ModifyMenuTextField {

func updateStyle(isEditing: Bool) {
if isWarn {
if isWarn && titleText == StringLiterals.ModifyMenu.price {
updateWarnStyle()
} else {
let textColor: UIColor = isEditing ? .gray850 : .gray800
Expand Down Expand Up @@ -241,7 +241,7 @@ private extension ModifyMenuTextField {
enterMenuAccessoryView.modifyCompleteButton.backgroundColor = !text.isEmpty ? .red500 : .red400
enterMenuAccessoryView.resetButton.isHidden = text.isEmpty

if let price = Int(text) {
if titleText == StringLiterals.ModifyMenu.price, let price = Int(text) {
isWarn = price > 8000
}
}
Expand Down

0 comments on commit 624a152

Please sign in to comment.