mirror of
https://github.com/urosran/cally.git
synced 2025-11-26 16:34:54 +00:00
Fix
This commit is contained in:
@ -9,8 +9,8 @@ export const useSignUp = () => {
|
||||
return useMutation({
|
||||
mutationKey: ["signUp"],
|
||||
mutationFn: async ({email, password}: { email: string, password: string }) => {
|
||||
await auth().createUserWithEmailAndPassword(email, password);
|
||||
await updateUserData({userType: ProfileType.PARENT, email, password});
|
||||
const res= await auth().createUserWithEmailAndPassword(email, password);
|
||||
await updateUserData({userType: ProfileType.PARENT, email, password, customUser: res.user});
|
||||
}
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user