From ea43ee337f59b99295603b17e90aa6639ffbe852 Mon Sep 17 00:00:00 2001 From: Stefan Loeschcke Date: Mon, 6 Mar 2023 14:28:08 +0100 Subject: [PATCH] fix(snapshotToData): 'snapshot.exists()' is method, not property. --- database/helpers/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }