Merge pull request #5402 from mempool/nymkappa/square-loading

[square] fix web sdk retry logic
This commit is contained in:
wiz 2024-08-02 16:50:41 -04:00 committed by GitHub
commit 37eb17cc22
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -424,7 +424,7 @@ export class AccelerateCheckout implements OnInit, OnDestroy {
if (!window['Square']) {
console.debug('Square.js failed to load properly. Retrying in 1 second.');
setTimeout(init, 1000);
setTimeout(this.setupSquare.bind(this), 1000);
} else {
init();
}