Skip to content

Commit f805765

Browse files
committed
Fix “is not a function” error in nextjs-start
1 parent 41b0a4d commit f805765

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nextjs-start/src/lib/firebase/firestore.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export async function getRestaurants(db = db, filters = {}) {
5050
}
5151

5252
export function getRestaurantsSnapshot(cb, filters = {}) {
53-
return;
53+
return () => {};
5454
}
5555

5656
export async function getRestaurantById(db, restaurantId) {
@@ -67,7 +67,7 @@ export async function getRestaurantById(db, restaurantId) {
6767
}
6868

6969
export function getRestaurantSnapshotById(restaurantId, cb) {
70-
return;
70+
return () => {};
7171
}
7272

7373
export async function getReviewsByRestaurantId(db, restaurantId) {

0 commit comments

Comments
 (0)