From 76b31a6b9bb7cf041ffb84aef5513ce8d33ab028 Mon Sep 17 00:00:00 2001 From: AvineshTripathi Date: Fri, 8 Dec 2023 21:24:07 +0530 Subject: [PATCH] fix: temporarily removing onboarding wizard for updates --- dashboard/components/layout/Layout.tsx | 2 +- .../components/layout/hooks/useGlobalStats.tsx | 14 ++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/dashboard/components/layout/Layout.tsx b/dashboard/components/layout/Layout.tsx index bc88261de..ed4f6ba4f 100644 --- a/dashboard/components/layout/Layout.tsx +++ b/dashboard/components/layout/Layout.tsx @@ -56,7 +56,7 @@ function Layout({ children }: LayoutProps) { } }, [telemetry]); - const betaFlagOnboardingWizard = true; + const betaFlagOnboardingWizard = false; // set this to true once wizard gets good support of the backend const isOnboarding = betaFlagOnboardingWizard && router.pathname.startsWith('/onboarding'); diff --git a/dashboard/components/layout/hooks/useGlobalStats.tsx b/dashboard/components/layout/hooks/useGlobalStats.tsx index 22b307f0e..63d742105 100644 --- a/dashboard/components/layout/hooks/useGlobalStats.tsx +++ b/dashboard/components/layout/hooks/useGlobalStats.tsx @@ -29,12 +29,14 @@ function useGlobalStats() { setError(true); } else { setLoading(false); - - if (res.accounts === 0) { - setHasNoAccounts(true); - } else { - setData(res); - } + // in the case of res.account === 0 the default view should be shown + // this couples the backend and the frontend strongly + // if (res.accounts === 0) { + + // } else { + // setData(res); + // } + setData(res); } }); }