Skip to content

Commit dc54e12

Browse files
committed
[Chore/#141] 조건식 수정
1 parent 9dde21a commit dc54e12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/poti/android/presentation/party/create/component/EditOptionPrice.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ fun EditOptionPrice(
112112

113113
val adjusted = when {
114114
newValue.isEmpty() -> ""
115-
newValue.all { c -> c == '0' } -> "0"
115+
newValue.all { it == '0' } -> "0"
116116
newValue.startsWith("0") -> newValue.dropWhile { it == '0' }
117117
else -> newValue
118118
}

0 commit comments

Comments
 (0)