1
0

qml: use FormattedAmount in LightningPaymentDetails, formatter and fx now use millisats if available, else sats

This commit is contained in:
Sander van Grieken
2023-01-09 17:36:12 +01:00
parent 4071fe9726
commit 82458e7cf0
3 changed files with 5 additions and 14 deletions

View File

@@ -9,7 +9,7 @@ RowLayout {
required property Amount amount
property bool showAlt: true
Label {
text: Config.formatSats(amount)
text: amount.msatsInt > 0 ? Config.formatMilliSats(amount) : Config.formatSats(amount)
font.family: FixedFont
}
Label {