Fix checkbox issues (#681)

* Fix checkbox issues

* Fix theme
This commit is contained in:
Charles Bochet
2023-07-15 14:16:02 -07:00
committed by GitHub
parent 2bbcf6980a
commit b982788100
11 changed files with 88 additions and 57 deletions

View File

@ -11,9 +11,15 @@ export function getOnboardingStatus(
isLoggedIn: boolean,
currentUser: CurrentUser | null,
) {
if (!isLoggedIn || !currentUser) {
if (!isLoggedIn) {
return OnboardingStatus.OngoingUserCreation;
}
// if the user has not been fetched yet, we can't know the onboarding status
if (!currentUser) {
return undefined;
}
if (!currentUser.workspaceMember?.workspace.displayName) {
return OnboardingStatus.OngoingWorkspaceCreation;
}