Skip to content
This repository has been archived by the owner on Nov 7, 2022. It is now read-only.

Commit

Permalink
fix: sign-up error (#547)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuhang Shi committed Sep 8, 2022
1 parent cf32aa7 commit f2ff0a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/client-web/src/routes/accounts/sign-up.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ export const SignUp: React.FC = () => {
// On Form Submit
const [userCreate, { loading: userCreateLoading }] = useUserCreateMutation()
const onFinish = async (values: object): Promise<void> => {
const input = omit(values, ['confirm_password']) as UserCreateInput
const input = omit(
values,
hasFederatedIdentity ? ['confirm_password', 'email', 'password'] : ['confirm_password']
) as UserCreateInput
const { data } = await userCreate({ variables: { input } })
const result = data?.userCreate
mutationResultHandler(result, () => {
Expand Down

0 comments on commit f2ff0a4

Please sign in to comment.