Skip to content

Commit ba78437

Browse files
fix: don't wrap profile in firebase example (#34457)
1 parent f3c3810 commit ba78437

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

examples/with-firebase/pages/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ export default function Home() {
2020

2121
const createUser = async () => {
2222
const db = getFirestore()
23-
await setDoc(doc(db, 'profile', profile.username), {
24-
profile,
25-
})
23+
await setDoc(doc(db, 'profile', profile.username), profile)
2624

2725
alert('User created!!')
2826
}

0 commit comments

Comments
 (0)