From 1180c970851a468c4917c4e0108fcb519ca6c1ff Mon Sep 17 00:00:00 2001 From: Shepherd Date: Fri, 5 Apr 2024 11:18:18 -0400 Subject: [PATCH] Fix remove event listener --- src/onesignal/UserNamespace.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/onesignal/UserNamespace.ts b/src/onesignal/UserNamespace.ts index e3494384a..a8beed3c0 100644 --- a/src/onesignal/UserNamespace.ts +++ b/src/onesignal/UserNamespace.ts @@ -102,6 +102,6 @@ export default class UserNamespace extends EventListenerBase { event: 'change', listener: (userChange: UserChangeEvent) => void, ): void { - UserNamespace.emitter.on(event, listener); + UserNamespace.emitter.off(event, listener); } }