Skip to content

Commit

Permalink
Merge pull request #1347 from joelklabo/fix-satoshi-formatting-nip5-i…
Browse files Browse the repository at this point in the history
…ndex

Fix satoshi formatting nip5 index
  • Loading branch information
arcbtc committed Jan 10, 2023
2 parents 0901f64 + d38ce5a commit 8f91a4a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lnbits/extensions/nostrnip5/templates/nostrnip5/index.html
Expand Up @@ -280,7 +280,9 @@ <h6 class="text-subtitle1 q-my-none">
'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
}
Expand Down

0 comments on commit 8f91a4a

Please sign in to comment.