Skip to content

Commit

Permalink
HOTFIX
Browse files Browse the repository at this point in the history
  • Loading branch information
hide-on-bush-x committed Nov 18, 2022
1 parent f93d221 commit 7954860
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/components/masa-interface/index.tsx
Expand Up @@ -29,12 +29,12 @@ export const MasaInterface = () => {
} = useMasa();

const page = useMemo(() => {
console.log({ loading, isConnected, identity, loggedIn });
console.log({ loading, isConnected, identity, loggedIn, creditReports });

if (!isConnected) return 'connector';
if (!loggedIn) return 'authenticate';
if (!identity && scope?.includes('identity')) return 'createIdentity';
if (identity && creditReports?.length && scope?.includes('credit-report'))
if (identity && !creditReports?.length && scope?.includes('credit-report'))
return 'createCreditReport';
if (isConnected && loggedIn) return 'connectedState';

Expand Down

0 comments on commit 7954860

Please sign in to comment.