Skip to content

Commit

Permalink
Merge pull request #1179 from jay-hodgson/PORTALS-3237
Browse files Browse the repository at this point in the history
  • Loading branch information
jay-hodgson authored Sep 9, 2024
2 parents 1061a2f + 8b3d884 commit bbb74f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/SageAccountWeb/src/components/RegisterAccount2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ export const RegisterAccount2 = (props: RegisterAccount2Props) => {
alias: username,
type: AliasType.USER_NAME,
})
if (!aliasCheckResponse.available) {
displayToast('Sorry, that username has already been taken.', 'danger')
return
} else if (!aliasCheckResponse.valid) {
if (!aliasCheckResponse.valid) {
displayToast('Sorry, that username is not valid.', 'danger')
return
} else if (!aliasCheckResponse.available) {
displayToast('Sorry, that username has already been taken.', 'danger')
return
}
// capture loginResponse here
const loginResponse = await SynapseClient.registerAccountStep2({
Expand Down

0 comments on commit bbb74f5

Please sign in to comment.