mirror of
https://github.com/unclebob/more-speech.git
synced 2024-09-30 10:30:56 +00:00
Fix zap warning messages to show sats instead of millisats
This commit is contained in:
parent
b3d4183dd7
commit
11308a8b6a
@ -156,7 +156,7 @@
|
||||
event {}
|
||||
comment "12345678901234567890"
|
||||
lnurl "lnurl"]
|
||||
(should-throw Exception "Amount 100 is below minimum of 1000"
|
||||
(should-throw Exception "Amount 0 is below minimum of 1"
|
||||
(zaps/make-zap-request wallet-response
|
||||
event amount comment lnurl))))
|
||||
|
||||
@ -173,7 +173,7 @@
|
||||
comment "12345678901234567890"
|
||||
lnurl "lnurl"
|
||||
amount 2000000]
|
||||
(should-throw Exception "Amount 2000000 is larger than maximum of 1000000"
|
||||
(should-throw Exception "Amount 2000 is larger than maximum of 1000"
|
||||
(zaps/make-zap-request wallet-response
|
||||
event amount comment lnurl))))
|
||||
|
||||
|
@ -71,9 +71,15 @@
|
||||
_ (when-not allowsNostr
|
||||
(throw (Exception. (str "Recipient does not accept Nostr zaps."))))
|
||||
_ (when (< amount minSendable)
|
||||
(throw (Exception. (str "Amount " amount " is below minimum of " minSendable))))
|
||||
(throw (Exception. (str "Amount "
|
||||
(quot amount 1000)
|
||||
" is below minimum of "
|
||||
(quot minSendable 1000)))))
|
||||
_ (when (> amount maxSendable)
|
||||
(throw (Exception. (str "Amount " amount " is larger than maximum of " maxSendable))))
|
||||
(throw (Exception. (str "Amount "
|
||||
(quot amount 1000)
|
||||
" is larger than maximum of "
|
||||
(quot maxSendable 1000)))))
|
||||
_ (when (and (some? comment)
|
||||
(some? commentAllowed)
|
||||
(> (count comment) commentAllowed))
|
||||
|
@ -273,7 +273,7 @@
|
||||
(text! up-arrow "👍🏻")
|
||||
(text! dn-arrow "👎🏻")))
|
||||
(if zapped?
|
||||
(text! zap-icon "❗⚡ ")
|
||||
(text! zap-icon "❗⚡ ") ;₿ use the bitcoin char?
|
||||
(text! zap-icon ""))
|
||||
(swing-util/clear-popup relays-popup)
|
||||
(swing-util/clear-popup reactions-popup)
|
||||
|
Loading…
Reference in New Issue
Block a user