Skip to content

Commit

Permalink
PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ash-vd authored and alber70g committed Aug 28, 2023
1 parent cf7c12a commit 370bf36
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/libs/client/src/signing/eckoWallet/eckoCommon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {

export const isInstalled: ICommonEckoFunctions['isInstalled'] = () => {
const { kadena } = window;
return Boolean(kadena && kadena.isKadena);
return Boolean(kadena && kadena.isKadena && kadena.request);
};

export const isConnected: ICommonEckoFunctions['isConnected'] = async (
Expand All @@ -21,11 +21,7 @@ export const isConnected: ICommonEckoFunctions['isConnected'] = async (
networkId,
});

if (checkStatusResponse?.status === 'fail') {
return false;
}

return true;
return checkStatusResponse?.status === 'success';
};

export const connect: ICommonEckoFunctions['connect'] = async (networkId) => {
Expand Down

0 comments on commit 370bf36

Please sign in to comment.