Update src/components/bitcoinConnect/SubscriptionPaymentButton.js

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Austin Kelsay 2025-05-13 11:39:11 -05:00 committed by GitHub
parent cb4e04ef73
commit 3583379468
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -49,7 +49,7 @@ const SubscriptionPaymentButtons = ({
intervalId = setInterval(async () => {
try {
const paid = await invoice.verifyPayment();
if (paid && invoice.preimage) {
if (paid) {
clearInterval(intervalId);
// handle success
onSuccess();