Skip to content

Commit

Permalink
feature(bank-sdk): Skonto + RA. Code refactor
Browse files Browse the repository at this point in the history
PP-795
  • Loading branch information
ndubkov-distcotech committed Nov 21, 2024
1 parent 4636487 commit d945049
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,11 @@ fun GiniAmountTextInput(
),
label = label,
onValueChange = {
text = decimalFormatter.textToDigits(it) // take only 7 digits
onValueChange(decimalFormatter.parseDigits(text))
val newText = decimalFormatter.textToDigits(it) // take only 7 digits
if (newText != text) {
text = newText
onValueChange(decimalFormatter.parseDigits(text))
}
},
trailingContent = trailingContent,
colors = colors,
Expand Down

0 comments on commit d945049

Please sign in to comment.