We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fdb931 commit 28730d6Copy full SHA for 28730d6
BDKSwiftExampleWallet/Extensions/Int+Extensions.swift
@@ -70,10 +70,10 @@ extension UInt64 {
70
}
71
72
func formattedBip177() -> String {
73
- if self >= 1_000_000 && self % 1_000_000 == .zero {
+ if self != .zero && self >= 1_000_000 && self % 1_000_000 == .zero {
74
return "\(self / 1_000_000)M"
75
76
- } else if self % 1_000 == 0 {
+ } else if self != .zero && self % 1_000 == 0 {
77
return "\(self / 1_000)K"
78
79
0 commit comments