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); } }