mirror of
https://github.com/urosran/cally.git
synced 2025-07-10 15:17:17 +00:00
additional hooks
This commit is contained in:
@ -11,6 +11,7 @@ export const useUpdateUserData = () => {
|
||||
mutationFn: async (newProfileData: Partial<UserProfile>) => {
|
||||
if (user) {
|
||||
try {
|
||||
console.log("yall don't even");
|
||||
await firestore()
|
||||
.collection("Profiles")
|
||||
.doc(user.uid)
|
||||
@ -20,7 +21,7 @@ export const useUpdateUserData = () => {
|
||||
|
||||
setProfileData(profileData.data() as UserProfile)
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
console.error(e)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user