Fix Satoshis Formatting on NIP-5 Index Page

This commit is contained in:
Joel Klabo 2023-01-10 09:35:43 -08:00
parent 9128953894
commit f237bdd4b7

View file

@ -280,7 +280,9 @@
'YYYY-MM-DD HH:mm' '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 return obj
} }