Skip to content

Commit

Permalink
PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ash-vd committed Aug 16, 2023
1 parent 40a6fad commit 7aeda2a
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 @@ -2,7 +2,7 @@ import { IEckoConnectOrStatusResponse } from './eckoTypes';

export const isInstalled = (): boolean => {
const { kadena } = window;
return Boolean(kadena && kadena.isKadena);
return Boolean(kadena && kadena.isKadena && kadena.request);
};

export const isConnected = async (networkId: string): Promise<boolean> => {
Expand All @@ -16,11 +16,7 @@ export const isConnected = async (networkId: string): Promise<boolean> => {
networkId,
});

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

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

export const connect = async (networkId: string): Promise<boolean> => {
Expand Down

0 comments on commit 7aeda2a

Please sign in to comment.