From f54e18feb1a22071b6b126d9fd2d968fc4ffef4b Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Sun, 1 Mar 2026 04:20:24 +0100 Subject: [PATCH] Do not show early banner if signup banner is there --- web/components/optional-profile-form.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/components/optional-profile-form.tsx b/web/components/optional-profile-form.tsx index 1d3d9c64..fd3fd94e 100644 --- a/web/components/optional-profile-form.tsx +++ b/web/components/optional-profile-form.tsx @@ -14,6 +14,7 @@ import { RELIGION_CHOICES, ROMANTIC_CHOICES, } from 'common/choices' +import {IS_PROD} from 'common/envs/constants' import {debug} from 'common/logger' import {MultipleChoiceOptions} from 'common/profiles/multiple-choice' import {getProfileRow, Profile, ProfileWithoutUser} from 'common/profiles/profile' @@ -199,7 +200,7 @@ export const OptionalProfileUserForm = (props: { i++ } if (profile) { - await sleep(5000) // attempt to mitigate profile not found at /${username} upon creation + if (IS_PROD) await sleep(5000) // attempt to mitigate profile not found at /${username} upon creation router.push(`/${user.username}${fromSignup ? '?fromSignup=true' : ''}`) } else { console.log('Profile not found after fetching, going back home...')