Skip to content

Commit 065e9c1

Browse files
royschutAntonLantukh
authored andcommitted
refactor: re-introduce initial delay while waiting for payment
1 parent ab41a2f commit 065e9c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/hooks-react/src/useCheckAccess.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const useCheckAccess = () => {
3131
const hasAccess = await accountController.checkEntitlements(offerId);
3232

3333
if (hasAccess) {
34-
await accountController.reloadSubscriptions({ retry: 10 });
34+
await accountController.reloadSubscriptions({ retry: 10, delay: 2000 });
3535
callback?.(true);
3636
} else if (--iterations === 0) {
3737
window.clearInterval(intervalRef.current);

0 commit comments

Comments
 (0)