Skip to content

Commit

Permalink
Little validation fix for allowlist
Browse files Browse the repository at this point in the history
  • Loading branch information
hide-on-bush-x committed Jan 11, 2023
1 parent 29c715c commit 8d28163
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/common/helpers/provider/masa-context.tsx
Expand Up @@ -104,8 +104,10 @@ export const MasaContextProvider = ({
(async () => {
if (masaInstance) {
const isAllowed = await masaInstance?.session.checkAllowlist();
setAllowedForAllowlist(isAllowed.success);
setAllowlistInfo(isAllowed);
if(isAllowed) {
setAllowedForAllowlist(isAllowed.success);
setAllowlistInfo(isAllowed);
}
}
})();
}, [masaInstance]);
Expand Down Expand Up @@ -275,6 +277,7 @@ export const MasaContextProvider = ({
}
}
}, [provider, noWallet]);


const context = {
setProvider,
Expand Down

0 comments on commit 8d28163

Please sign in to comment.