Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
KKA11010 committed Sep 13, 2023
1 parent 0b2db68 commit 4662160
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/screens/Payment/Receive/Invoice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ export default function InvoiceScreen({ navigation, route }: TMintInvoicePagePro
// auto check payment in intervals
useEffect(() => {
const interval = setInterval(() => {
if (paid === 'paid') {
clearInterval(interval)
return
}
void handlePayment()
}, 3000)
return () => clearInterval(interval)
Expand Down

0 comments on commit 4662160

Please sign in to comment.