mirror of
https://github.com/urosran/cally.git
synced 2025-11-27 00:44:54 +00:00
bugfixes
This commit is contained in:
@ -15,7 +15,7 @@ export const useCreateSubUser = () => {
|
||||
return await functions().httpsCallable("createSubUser")({
|
||||
...userProfile,
|
||||
email,
|
||||
familyId: profileData?.familyId
|
||||
familyId: profileData?.familyId!
|
||||
}) as HttpsCallableResult<{ userId: string }>
|
||||
} else {
|
||||
throw Error("Can't create sub-users as a non-parent.")
|
||||
|
||||
Reference in New Issue
Block a user