Skip to content

Commit dcebffd

Browse files
authored
[dashboard] handle needs_verification on create (#17203)
1 parent 82bbd7c commit dcebffd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

components/dashboard/src/workspaces/CreateWorkspacePage.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import { useCurrentUser } from "../user-context";
3131
import { SelectAccountModal } from "../user-settings/SelectAccountModal";
3232
import { WorkspaceEntry } from "./WorkspaceEntry";
3333
import { useAuthProviders } from "../data/auth-providers/auth-provider-query";
34+
import { VerifyModal } from "../start/VerifyModal";
3435

3536
export const useNewCreateWorkspacePage = () => {
3637
const { startWithOptions } = useFeatureFlags();
@@ -360,6 +361,8 @@ const ErrorMessage: FunctionComponent<StatusMessageProps> = ({
360361
return renderError(`The organization '${error.data}' is not valid.`);
361362
case ErrorCodes.PAYMENT_SPENDING_LIMIT_REACHED:
362363
return <UsageLimitReachedModal onClose={reset} hints={error?.data} />;
364+
case ErrorCodes.NEEDS_VERIFICATION:
365+
return <VerifyModal />;
363366
default:
364367
return renderError(error.message || JSON.stringify(error));
365368
}

0 commit comments

Comments
 (0)