Unverified Commit ba78437c authored by Balázs Orbán's avatar Balázs Orbán Committed by GitHub

fix: don't wrap `profile` in firebase example (#34457)

parent f3c3810a
...@@ -20,9 +20,7 @@ export default function Home() { ...@@ -20,9 +20,7 @@ export default function Home() {
const createUser = async () => { const createUser = async () => {
const db = getFirestore() const db = getFirestore()
await setDoc(doc(db, 'profile', profile.username), { await setDoc(doc(db, 'profile', profile.username), profile)
profile,
})
alert('User created!!') alert('User created!!')
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment