diff --git a/firestore/helpers/index.ts b/firestore/helpers/index.ts index 4c273af..9818d04 100644 --- a/firestore/helpers/index.ts +++ b/firestore/helpers/index.ts @@ -17,7 +17,7 @@ export const snapshotToData = ( refField?: string, transform?: (val: any) => T ) => { - if (!snapshot.exists) { + if (!snapshot.exists()) { return undefined; }