Skip to content

Commit 9b6a6c0

Browse files
authored
docs: fixed firebaseApp ref in Usage code sample (#1264)
1 parent d7d98b7 commit 9b6a6c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/guide/getting-started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const firebaseApp = initializeApp({
3737
})
3838

3939
// used for the databas refs
40-
const db = getDatabase(firebase)
40+
const db = getDatabase(firebaseApp)
4141

4242
// here we can export reusable database references
4343
export const todosRef = dbRef(db, 'todos')
@@ -53,7 +53,7 @@ export const firebaseApp = initializeApp({
5353
})
5454

5555
// used for the firestore refs
56-
const db = getFirestore(firebase)
56+
const db = getFirestore(firebaseApp)
5757

5858
// here we can export reusable database references
5959
export const todosRef = collection(db, 'todos')

0 commit comments

Comments
 (0)