Skip to content

Commit

Permalink
Quick hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
hide-on-bush-x committed Mar 2, 2023
1 parent 7ce784c commit 876eb51
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/components/masa-interface/masa-interface.tsx
Expand Up @@ -64,7 +64,10 @@ export const MasaInterface = ({
if (!isLoggedIn && provider) return 'authenticate';
if (!identity?.identityId && scope?.includes('identity'))
return 'createIdentity';
if (soulnames && soulnames.length === 0 && scope?.includes('soulname'))
if (
(!soulnames || (soulnames && soulnames.length === 0)) &&
scope?.includes('soulname')
)
return 'createSoulname';
if (identity && !creditScores?.length && scope?.includes('credit-score'))
return 'createCreditScore';
Expand Down
2 changes: 1 addition & 1 deletion stories/masa.stories.tsx
Expand Up @@ -30,7 +30,7 @@ const Component = (): JSX.Element => {

const handleConnect = useCallback(() => {
connect?.({
scope: ['soulname', 'auth'],
scope: ['auth', 'soulname'],
callback: function () {
alert('hello hello connected');
},
Expand Down

0 comments on commit 876eb51

Please sign in to comment.