diff --git a/spec/more_speech/nostr/zaps_spec.clj b/spec/more_speech/nostr/zaps_spec.clj index ab4d7d0..06ef57b 100644 --- a/spec/more_speech/nostr/zaps_spec.clj +++ b/spec/more_speech/nostr/zaps_spec.clj @@ -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)))) diff --git a/src/more_speech/nostr/zaps.clj b/src/more_speech/nostr/zaps.clj index b892494..b613efb 100644 --- a/src/more_speech/nostr/zaps.clj +++ b/src/more_speech/nostr/zaps.clj @@ -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)) diff --git a/src/more_speech/ui/swing/article_panel.clj b/src/more_speech/ui/swing/article_panel.clj index 3b5c778..78a1fe2 100644 --- a/src/more_speech/ui/swing/article_panel.clj +++ b/src/more_speech/ui/swing/article_panel.clj @@ -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)