Skip to content

Commit

Permalink
Fix reg (#53)
Browse files Browse the repository at this point in the history
* Fix reg

* Update App.svelte

* Update users.ts
  • Loading branch information
umireon authored Mar 17, 2024
1 parent dad7f55 commit f7f2e75
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/service/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
collection,
doc,
onSnapshot,
updateDoc,
setDoc,
} from "firebase/firestore";

import { type User } from "firebase/auth";
Expand Down Expand Up @@ -76,5 +76,7 @@ export const setUserData = async (
user: User,
data: UserData
) => {
await updateDoc(doc(getUsersCollection(db), user.uid), data);
await setDoc(doc(getUsersCollection(db), user.uid), data, {
merge: true,
});
};

0 comments on commit f7f2e75

Please sign in to comment.