Skip to content

Commit

Permalink
fix: temporarily removing onboarding wizard for updates
Browse files Browse the repository at this point in the history
  • Loading branch information
AvineshTripathi committed Dec 18, 2023
1 parent 864286d commit 76b31a6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dashboard/components/layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down
14 changes: 8 additions & 6 deletions dashboard/components/layout/hooks/useGlobalStats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
});
}
Expand Down

0 comments on commit 76b31a6

Please sign in to comment.