Skip to content

Commit

Permalink
fix scan invoice check and process with +1 mint
Browse files Browse the repository at this point in the history
  • Loading branch information
KKA11010 committed Sep 9, 2023
1 parent cef4bae commit 7026a8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/screens/Payment/SelectMint.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ export default function SelectMintScreen({ navigation, route }: TSelectMintPageP
balance: mint.amount,
amount: invoiceAmount,
estFee,
isMelt: true
isMelt: true,
recipient: invoice
})
return
}
Expand Down
2 changes: 1 addition & 1 deletion src/screens/QRScan/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export default function QRScanPage({ navigation, route }: TQRScanPageProps) {
}
// handle LN invoice
try {
const invoice = data.split(':')[1]
const invoice = data.includes(':') ? data.split(':')[1] : data
const decoded: IDecodedLNInvoice = getDecodedLnInvoice(invoice)
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access
const amount = decoded.sections[2].value / 1000
Expand Down

0 comments on commit 7026a8b

Please sign in to comment.