Skip to content

Commit

Permalink
small fixes in registration
Browse files Browse the repository at this point in the history
  • Loading branch information
zavarin-michael committed Aug 26, 2024
1 parent 1f476a2 commit bcc914c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ export const RegisterForm: React.FC<IRegisterFormProps> = ({ onFinish, onError }
const registerComplete = useCallback(() => {
const { password } = form.getFieldsValue(['password'])

registrationHandler(phone, password, userRegistration, onError, form).then(async () => {
await getLazyUser({})
registrationHandler(phone, password, userRegistration, onError, form).then(async (response) => {
if (!('error' in response)) {
await getLazyUser({})
}
})
}, [form, signInByPhone, getLazyUser])

Expand Down
1 change: 1 addition & 0 deletions apps/schools/domains/user/handlers/auth/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ export async function registrationHandler(
},
])
}
return response
}

export async function resendOtpHandler(recaptchaToken: string, resendOtpMutation: any, onError: () => void) {
Expand Down

0 comments on commit bcc914c

Please sign in to comment.