Skip to content

Commit

Permalink
feat: handle msat in success message
Browse files Browse the repository at this point in the history
  • Loading branch information
pavanjoshi914 committed Nov 4, 2024
1 parent 4a5416c commit 98d8eaa
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/app/screens/ConfirmPayment/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,13 @@ function ConfirmPayment() {
const [fiatAmount, setFiatAmount] = useState("");
const [fiatBudgetAmount, setFiatBudgetAmount] = useState("");

const formattedInvoiceSats = getFormattedSats(invoice.satoshis || 0);
const formattedInvoiceSats = getFormattedSats(
invoice.satoshis
? invoice.satoshis
: invoice.millisatoshis
? Math.floor(parseInt(invoice.millisatoshis) / 1000)
: 0
);

useEffect(() => {
(async () => {
Expand Down

0 comments on commit 98d8eaa

Please sign in to comment.