additional hooks

This commit is contained in:
ivic00
2024-08-22 22:02:43 +02:00
parent 55a3091023
commit 0a862e7a8c
14 changed files with 3376 additions and 2999 deletions

View File

@ -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)
}
}
}