From 3583379468332f4ceda7c83c9b474023f7701b91 Mon Sep 17 00:00:00 2001 From: Austin Kelsay <53542748+AustinKelsay@users.noreply.github.com> Date: Tue, 13 May 2025 11:39:11 -0500 Subject: [PATCH] Update src/components/bitcoinConnect/SubscriptionPaymentButton.js Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- src/components/bitcoinConnect/SubscriptionPaymentButton.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/bitcoinConnect/SubscriptionPaymentButton.js b/src/components/bitcoinConnect/SubscriptionPaymentButton.js index a951b29..921d6a8 100644 --- a/src/components/bitcoinConnect/SubscriptionPaymentButton.js +++ b/src/components/bitcoinConnect/SubscriptionPaymentButton.js @@ -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();