Reject decimal input in the manual "currency to Sats" field

It was using the decimal sanitizer/keyboard, same as the rate field
next to it — but Sats are indivisible, so this one should behave like
the existing Sats amount field: integers only, numeric keypad.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FXcrACM5sok3M1KQJ8kByy
This commit is contained in:
2026-09-10 12:24:13 +03:00
co-authored by Claude Sonnet 5
parent 69762133fe
commit 293c822c86
3 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -115,8 +115,8 @@ struct ContentView: View {
NumericField(
placeholder: "",
value: state.manualSatsPerCurrencyInput,
keyboardType: .decimalPad,
sanitize: sanitizeDecimalInput,
keyboardType: .numberPad,
sanitize: sanitizeIntegerInput,
onChange: { viewModel.onManualSatsPerCurrencyChanged($0) },
alignment: .trailing
)