Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
fix(app): add a delicate timeout lol
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcnk committed Apr 6, 2024
1 parent fc8c2b8 commit 192a20d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@
export const walletIsConnected = writable<boolean>(false);
onMount(() => {
walletName.set(window.mina?.wallet?.name);
walletIcon.set(window.mina?.wallet?.icon);
window.mina
?.isConnected()
?.then((res) => walletIsConnected.set(res.result));
setTimeout(() => {
walletName.set(window.mina?.wallet?.name);
walletIcon.set(window.mina?.wallet?.icon);
window.mina
?.isConnected()
?.then((res) => walletIsConnected.set(res.result));
}, 500);
});
export let enable = window.mina?.enable;
Expand Down

0 comments on commit 192a20d

Please sign in to comment.