diff --git a/database/helpers/index.ts b/database/helpers/index.ts index 81bde8e..78d7e7c 100644 --- a/database/helpers/index.ts +++ b/database/helpers/index.ts @@ -15,7 +15,7 @@ export const snapshotToData = ( refField?: string, transform?: (val: any) => T ) => { - if (!snapshot.exists) { + if (!snapshot.exists()) { return undefined; }