Improve sats numeric entry for zaps

Changelog-Changed: Add number formatting for sats entry and use selected zaps amount from picker as placeholder
Changelog-Fixed: Do not allow non-numeric characters for sats amount and fix numeric entry for other number systems for all locales
This commit is contained in:
2023-04-16 18:06:34 +02:00
parent 9b3e25dd6d
commit 73ac677711
6 changed files with 26 additions and 16 deletions

View File

@@ -97,9 +97,9 @@ class damusTests: XCTestCase {
func testSaveDefaultZapAmount() {
let pubkey = "test_pubkey"
let amt = 1000
let amt = 1234
set_default_zap_amount(pubkey: pubkey, amount: amt)
let loaded = get_default_zap_amount(pubkey: pubkey)!
let loaded = get_default_zap_amount(pubkey: pubkey)
XCTAssertEqual(loaded, amt)
}