From ba78437cfff866c02468b6b180f8ea72979ef76e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20Orb=C3=A1n?= Date: Thu, 17 Feb 2022 05:04:29 +0100 Subject: [PATCH] fix: don't wrap `profile` in firebase example (#34457) --- examples/with-firebase/pages/index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/with-firebase/pages/index.js b/examples/with-firebase/pages/index.js index bfef773741eea..4993df6402319 100644 --- a/examples/with-firebase/pages/index.js +++ b/examples/with-firebase/pages/index.js @@ -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!!') }