damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 5c885b0fd423499801527756dabeeea1d144482e
parent 8589fe9aee827cc22b766e9b5711cfe11a5e9e89
Author: Swift <scoder1747@gmail.com>
Date:   Thu, 27 Apr 2023 23:16:18 -0400

Fix sats plurality

Closes: #1034

Diffstat:
Mdamus/Views/Zaps/CustomizeZapView.swift | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/damus/Views/Zaps/CustomizeZapView.swift b/damus/Views/Zaps/CustomizeZapView.swift @@ -147,7 +147,7 @@ struct CustomizeZapView: View { self.custom_amount_sats = nil } } - Text("sats", comment: "Shortened form of satoshi, display unit of measure where 1,000,000,000 satoshis is 1 Bitcoin. Used to indicate how many sats will be zapped to a note, configured through the custom zap view.") + Text(custom_amount_sats == 1 ? "sat" : "sats", comment: "Shortened form of satoshi, display unit of measure where 1,000,000,000 satoshis is 1 Bitcoin. Used to indicate how many sats will be zapped to a note, configured through the custom zap view.") .font(.system(size: 18, weight: .heavy)) } }