From 7fa0ffa62a6a0f78ef3a6f89475eb306534414be Mon Sep 17 00:00:00 2001 From: ett-hyoshida Date: Wed, 20 Apr 2022 16:38:48 +0900 Subject: [PATCH] TypeError: onComplete is not a function --- packages/firebase-database/index.ios.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/firebase-database/index.ios.ts b/packages/firebase-database/index.ios.ts index a64fe85d..6a3f105b 100644 --- a/packages/firebase-database/index.ios.ts +++ b/packages/firebase-database/index.ios.ts @@ -378,7 +378,7 @@ export class Reference extends Query implements IReference { onComplete?.(err); reject(err); } else { - onComplete(null); + onComplete?.(null); resolve(); } });