Skip to content

Commit

Permalink
Increase timeout when checking installed Nightly extension.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pawel-Szydlo committed Apr 26, 2024
1 parent 594f530 commit 1c7a108
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/nightly/src/lib/nightly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ const setupNightlyState = async (
};
};
const isInstalled = () => {
return waitFor(() => !!window.nightly?.near).catch(() => false);
return waitFor(() => !!window.nightly?.near, { timeout: 5000 }).catch(
() => false
);
};
const Nightly: WalletBehaviourFactory<InjectedWallet> = async ({
metadata,
Expand Down

0 comments on commit 1c7a108

Please sign in to comment.