Skip to content

Commit bb60099

Browse files
committed
fix(database): #120
1 parent ae919ad commit bb60099

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/firebase-database/index.android.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ export class Query implements IQuery {
191191
off(eventType?: EventType, callback?: (a: DataSnapshot, b: string) => void, context?: Record<string, any>): void {
192192
const handle = callback?.['__fbHandle'];
193193
const event = callback?.['__fbEventType'];
194-
if (typeof handle === 'number' && event === eventType) {
194+
if (handle && event === eventType) {
195195
if (this.#handles.has(callback)) {
196196
this.native.removeEventListener(handle as any);
197197
callback['__fbHandle'] = undefined;

0 commit comments

Comments
 (0)