Skip to content

Commit

Permalink
fix: don't wrap profile in firebase example (#34457)
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsorban44 committed Feb 17, 2022
1 parent f3c3810 commit ba78437
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/with-firebase/pages/index.js
Expand Up @@ -20,9 +20,7 @@ export default function Home() {

const createUser = async () => {
const db = getFirestore()
await setDoc(doc(db, 'profile', profile.username), {
profile,
})
await setDoc(doc(db, 'profile', profile.username), profile)

alert('User created!!')
}
Expand Down

0 comments on commit ba78437

Please sign in to comment.