Skip to content

Commit

Permalink
Merge pull request #1166 from OneSignal/fix/removeUserChangeListener
Browse files Browse the repository at this point in the history
[Fix] User change remove event listener
  • Loading branch information
shepherd-l authored Apr 5, 2024
2 parents 3a0d585 + 1180c97 commit 0b7ff68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/onesignal/UserNamespace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 0b7ff68

Please sign in to comment.