From 00a3a84af760b1b3e74014ffded29386214ec86f Mon Sep 17 00:00:00 2001 From: Sebastian Gerske <13647606+H34D@users.noreply.github.com> Date: Mon, 14 Nov 2022 18:48:58 +0100 Subject: [PATCH] fix errors --- src/common/components/masa-interface/index.tsx | 4 +++- .../components/masa-interface/pages/createIdentity/index.tsx | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/common/components/masa-interface/index.tsx b/src/common/components/masa-interface/index.tsx index a6ded5d1..d25d239c 100644 --- a/src/common/components/masa-interface/index.tsx +++ b/src/common/components/masa-interface/index.tsx @@ -38,6 +38,8 @@ 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'; @@ -45,7 +47,7 @@ export const MasaInterface = () => { default: return 'connector'; } - }, [loading, isConnected, identity, loggedIn, isModalOpen, scope]); + }, [loading, isConnected, identity, loggedIn, scope]); return ( <> diff --git a/src/common/components/masa-interface/pages/createIdentity/index.tsx b/src/common/components/masa-interface/pages/createIdentity/index.tsx index ae8a23fe..802b589e 100644 --- a/src/common/components/masa-interface/pages/createIdentity/index.tsx +++ b/src/common/components/masa-interface/pages/createIdentity/index.tsx @@ -7,7 +7,7 @@ export const InterfaceCreateIdentity = () => { const createIdentity = useCallback(async () => { await handlePurchaseIdentity?.(); - }, []); + }, [handlePurchaseIdentity]); if (loading) return ;