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 safe access to enable and disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcnk committed Apr 6, 2024
1 parent 6d59adc commit fc8c2b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
?.then((res) => walletIsConnected.set(res.result));
});
export let enable = window.mina.enable;
export let disconnect = window.mina.disconnect;
export let enable = window.mina?.enable;
export let disconnect = window.mina?.disconnect;
export const signMessage = async () => {
const response = await window.mina.request({
method: "mina_sign",
Expand Down

0 comments on commit fc8c2b8

Please sign in to comment.