Skip to content

Commit

Permalink
Fix TypeError in catch of QR code
Browse files Browse the repository at this point in the history
  • Loading branch information
ekzyis committed Jan 20, 2024
1 parent 7543e08 commit eacc60f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/qr.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export default function Qr ({ asIs, value, webLn, statusVariant, description, st
try {
await provider.sendPayment(value)
} catch (e) {
console.log(e.message)
toaster.danger(`${provider.name}: ${e.message}`)
console.log(e?.message)
toaster.danger(`${provider.name}: ${e?.message}`)
}
}
}
Expand Down

0 comments on commit eacc60f

Please sign in to comment.