Merge pull request #1347 from joelklabo/fix-satoshi-formatting-nip5-index

Fix satoshi formatting nip5 index
This commit is contained in:
Arc 2023-01-10 18:55:03 +00:00 committed by GitHub
commit 8f91a4a097
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -280,7 +280,9 @@
'YYYY-MM-DD HH:mm'
)
obj.amount = parseFloat(obj.amount / 100).toFixed(2)
if (obj.currency != 'Satoshis') {
obj.amount = parseFloat(obj.amount / 100).toFixed(2)
}
return obj
}