Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
H34D committed Nov 14, 2022
1 parent 99f86a8 commit 00a3a84
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/common/components/masa-interface/index.tsx
Expand Up @@ -38,14 +38,16 @@ export const MasaInterface = () => {
// @ts-ignore
case !identity:
if (scope?.includes('identity')) return 'createIdentity';
// todo this cant be correct, but otherwise i will get a typescript error
return '';

case isConnected && loggedIn:
return 'connectedState';

default:
return 'connector';
}
}, [loading, isConnected, identity, loggedIn, isModalOpen, scope]);
}, [loading, isConnected, identity, loggedIn, scope]);

return (
<>
Expand Down
Expand Up @@ -7,7 +7,7 @@ export const InterfaceCreateIdentity = () => {

const createIdentity = useCallback(async () => {
await handlePurchaseIdentity?.();
}, []);
}, [handlePurchaseIdentity]);

if (loading) return <MasaLoading />;

Expand Down

0 comments on commit 00a3a84

Please sign in to comment.