mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-06-05 00:32:03 +00:00
Update src/components/bitcoinConnect/SubscriptionPaymentButton.js
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
cb4e04ef73
commit
3583379468
@ -49,7 +49,7 @@ const SubscriptionPaymentButtons = ({
|
|||||||
intervalId = setInterval(async () => {
|
intervalId = setInterval(async () => {
|
||||||
try {
|
try {
|
||||||
const paid = await invoice.verifyPayment();
|
const paid = await invoice.verifyPayment();
|
||||||
if (paid && invoice.preimage) {
|
if (paid) {
|
||||||
clearInterval(intervalId);
|
clearInterval(intervalId);
|
||||||
// handle success
|
// handle success
|
||||||
onSuccess();
|
onSuccess();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user