Skip to content

Commit 2360c73

Browse files
committed
fix: placeholder length
1 parent 4f33cda commit 2360c73

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/src/main/java/to/bitkit/ui/components/NumberPadTextField.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ fun NumberPadTextField(
6969
}
7070

7171
if (input.contains(".")) {
72-
placeholder = fraction //TODO GET FRACTIONAL LENGTH
72+
placeholder = ""
73+
if (placeholderFractional.length >= fraction.length) {
74+
placeholder = placeholderFractional.drop(fraction.length)
75+
}
7376

7477
if (primaryDisplay == PrimaryDisplay.FIAT) {
7578
value = "$whole.$fraction" //TODO FORMAT MONEY

0 commit comments

Comments
 (0)