From 1d62ea6e6137d4025e9a7281dc77c497d859a9ea Mon Sep 17 00:00:00 2001 From: bobbykolev Date: Mon, 13 Jan 2025 12:57:11 +0200 Subject: [PATCH] proper check for available account for the vc flow --- .../useNewVirtualContributorWizard.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/topLevelPages/myDashboard/newVirtualContributorWizard/useNewVirtualContributorWizard.tsx b/src/main/topLevelPages/myDashboard/newVirtualContributorWizard/useNewVirtualContributorWizard.tsx index bef3e3d3e5..ed3f7a46e8 100644 --- a/src/main/topLevelPages/myDashboard/newVirtualContributorWizard/useNewVirtualContributorWizard.tsx +++ b/src/main/topLevelPages/myDashboard/newVirtualContributorWizard/useNewVirtualContributorWizard.tsx @@ -474,7 +474,7 @@ const useNewVirtualContributorWizard = (): useNewVirtualContributorWizardProvide }; const NewVirtualContributorWizard = useCallback(() => { - if (!targetAccount || !data?.me.user?.account) { + if (!(targetAccount || data?.me.user?.account)) { return null; } @@ -526,7 +526,7 @@ const useNewVirtualContributorWizard = (): useNewVirtualContributorWizardProvide ); - }, [dialogOpen, step, loading, selectableSpaces, selectedExistingSpaceId]); + }, [dialogOpen, step, loading, selectableSpaces, selectedExistingSpaceId, targetAccount, data]); return { startWizard,