diff --git a/app/scenes/Settings/Details.tsx b/app/scenes/Settings/Details.tsx index b4b94eaed3..90506fa7c8 100644 --- a/app/scenes/Settings/Details.tsx +++ b/app/scenes/Settings/Details.tsx @@ -10,6 +10,7 @@ import { ThemeProvider, useTheme } from "styled-components"; import { buildDarkTheme, buildLightTheme } from "@shared/styles/theme"; import { CustomTheme, TOCPosition, TeamPreference } from "@shared/types"; import { getBaseDomain } from "@shared/utils/domains"; +import { TeamValidation } from "@shared/validations"; import Button from "~/components/Button"; import ButtonLink from "~/components/ButtonLink"; import DefaultCollectionInputSelect from "~/components/DefaultCollectionInputSelect"; @@ -322,8 +323,12 @@ function Details() { value={subdomain || ""} onChange={handleSubdomainChange} autoComplete="off" - minLength={4} - maxLength={32} + minLength={TeamValidation.minSubdomainLength} + maxLength={ + isCloudHosted + ? TeamValidation.maxSubdomainLength + : TeamValidation.maxSubdomainSelfHostedLength + } />