diff options
author | Jan-Olof Eriksson <jan-olof.eriksson@iki.fi> | 2024-02-24 16:37:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-24 16:37:08 +0200 |
commit | 1f9562847512bb41cd8bb381b735a388be4db59b (patch) | |
tree | 2181860f0f4cde3b4e24b5d6045420cc86083d91 /src/view/com/auth/create/CreateAccount.tsx | |
parent | 38fd4282f88ac020ee72d5a6324191ee80798450 (diff) | |
parent | d38f168de593b0a7883180ee51bf043eb1557dd2 (diff) | |
download | voidsky-1f9562847512bb41cd8bb381b735a388be4db59b.tar.zst |
Merge branch 'bluesky-social:main' into main
Diffstat (limited to 'src/view/com/auth/create/CreateAccount.tsx')
-rw-r--r-- | src/view/com/auth/create/CreateAccount.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/view/com/auth/create/CreateAccount.tsx b/src/view/com/auth/create/CreateAccount.tsx index 8aefffa6d..d193802fe 100644 --- a/src/view/com/auth/create/CreateAccount.tsx +++ b/src/view/com/auth/create/CreateAccount.tsx @@ -23,7 +23,7 @@ import {Step3} from './Step3' import {useWebMediaQueries} from '#/lib/hooks/useWebMediaQueries' import {TextLink} from '../../util/Link' import {getAgent} from 'state/session' -import {createFullHandle} from 'lib/strings/handles' +import {createFullHandle, validateHandle} from 'lib/strings/handles' export function CreateAccount({onPressBack}: {onPressBack: () => void}) { const {screen} = useAnalytics() @@ -78,6 +78,10 @@ export function CreateAccount({onPressBack}: {onPressBack: () => void}) { } if (uiState.step === 2) { + if (!validateHandle(uiState.handle, uiState.userDomain).overall) { + return + } + uiDispatch({type: 'set-processing', value: true}) try { const res = await getAgent().resolveHandle({ |