bug: invoice amount from millisats

This commit is contained in:
2023-03-06 10:18:33 +00:00
parent 840e2ff400
commit 33bbadeda8
3 changed files with 18 additions and 9 deletions

View File

@ -66,7 +66,7 @@ export default function Invoice(props: InvoiceProps) {
<p className="invoice-amount">
{amount > 0 && (
<>
{amount.toLocaleString()} <span className="sats">sat{amount === 1 ? "" : "s"}</span>
{(amount / 1_000).toLocaleString()} <span className="sats">sat{amount === 1_000 ? "" : "s"}</span>
</>
)}
</p>