diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-02-21 08:42:21 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-21 08:42:21 -0800 |
commit | 798bf4782730d2d900ee30630bf065e2551bf089 (patch) | |
tree | 4b5120093ed4891b1a7a0254a14e9d7c1130cf59 /src/screens/Signup | |
parent | b0f7f51b04b8a5dfae4c95923d102827f62fa6e4 (diff) | |
download | voidsky-798bf4782730d2d900ee30630bf065e2551bf089.tar.zst |
fix handle length error message (#7802)
Diffstat (limited to 'src/screens/Signup')
-rw-r--r-- | src/screens/Signup/StepHandle.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/screens/Signup/StepHandle.tsx b/src/screens/Signup/StepHandle.tsx index c06fa29d1..a583fb9c8 100644 --- a/src/screens/Signup/StepHandle.tsx +++ b/src/screens/Signup/StepHandle.tsx @@ -6,7 +6,7 @@ import {useLingui} from '@lingui/react' import {logEvent} from '#/lib/statsig/statsig' import { createFullHandle, - maxServiceHandleLength, + MAX_SERVICE_HANDLE_LENGTH, validateServiceHandle, } from '#/lib/strings/handles' import {useAgent} from '#/state/session' @@ -168,11 +168,11 @@ export function StepHandle() { <IsValidIcon valid={validCheck.frontLength && validCheck.totalLength} /> - {!validCheck.totalLength ? ( + {!validCheck.totalLength || + draftValue.length > MAX_SERVICE_HANDLE_LENGTH ? ( <Text style={[a.text_md, a.flex_1]}> <Trans> - No longer than {maxServiceHandleLength(state.userDomain)}{' '} - characters + No longer than {MAX_SERVICE_HANDLE_LENGTH} characters </Trans> </Text> ) : ( |