history: remove trailing zeros in amount + fix amount display

This commit is contained in:
rating89us 2020-07-08 15:05:11 +02:00 committed by GitHub
parent 596b71b293
commit f1b4eb6c56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1511,7 +1511,7 @@ Rectangle {
"i": i,
"isout": isout,
"amount": Number(amount),
"displayAmount": displayAmount + " XMR",
"displayAmount": Utils.removeTrailingZeros(displayAmount.toFixed(12)) + " XMR",
"hash": hash,
"paymentId": paymentId,
"address": address,