Skip to content

Commit

Permalink
proper check for available account for the vc flow
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbykolev committed Jan 13, 2025
1 parent c5c09cf commit 1d62ea6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ const useNewVirtualContributorWizard = (): useNewVirtualContributorWizardProvide
};

const NewVirtualContributorWizard = useCallback(() => {
if (!targetAccount || !data?.me.user?.account) {
if (!(targetAccount || data?.me.user?.account)) {
return null;
}

Expand Down Expand Up @@ -526,7 +526,7 @@ const useNewVirtualContributorWizard = (): useNewVirtualContributorWizardProvide
</StorageConfigContextProvider>
</DialogWithGrid>
);
}, [dialogOpen, step, loading, selectableSpaces, selectedExistingSpaceId]);
}, [dialogOpen, step, loading, selectableSpaces, selectedExistingSpaceId, targetAccount, data]);

return {
startWizard,
Expand Down

0 comments on commit 1d62ea6

Please sign in to comment.