Skip to content

Commit

Permalink
Flip condition for initializing wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
ebma committed Oct 25, 2024
1 parent 0727bfd commit e3cccfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GlobalStateProvider/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const GlobalStateProvider = ({ children }: { children: ComponentChildren }) => {
}
// skip if tenant already initialized
console.log('skipping if tenant already initialized', tenantRef.current === tenantName || accountAddress);
if (tenantRef.current === tenantName || (accountAddress && storageAddress !== accountAddress)) return;
if (tenantRef.current === tenantName || (accountAddress && storageAddress === accountAddress)) return;
tenantRef.current = tenantName;
const selectedWallet = await initSelectedWallet(dAppName, tenantName, storageAddress);
console.log('In useEffect, selecting wallet: ', selectedWallet);
Expand Down

0 comments on commit e3cccfc

Please sign in to comment.