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:
tyiuandClaude Sonnet 5 committed 2026-09-10 12:24:13 +03:00
1 parent 69762133fe
commit 293c822c86
3 files changed
+5 -4

No files matched your search

+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
)