mirror of
https://github.com/hazemKrimi/crimson-quirks-ui.git
synced 2026-05-02 02:30:29 +00:00
Fix create user page
This commit is contained in:
@@ -138,7 +138,6 @@ const CreateUser = () => {
|
|||||||
});
|
});
|
||||||
setSelectedSection('security');
|
setSelectedSection('security');
|
||||||
},
|
},
|
||||||
enableReinitialize: true,
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const { data: countryCodes, loading: countryCodesLoading } = useQuery<
|
const { data: countryCodes, loading: countryCodesLoading } = useQuery<
|
||||||
@@ -169,7 +168,7 @@ const CreateUser = () => {
|
|||||||
}),
|
}),
|
||||||
onSubmit: ({ password }) => {
|
onSubmit: ({ password }) => {
|
||||||
setNewUser({ ...newUser, password });
|
setNewUser({ ...newUser, password });
|
||||||
createUser({ variables: { user: { ...newUser } } });
|
createUser({ variables: { user: { ...newUser, password } } });
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user