Skip to content

Commit

Permalink
Fix order events
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo committed Feb 3, 2021
1 parent a902fd5 commit 15eb4ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/lib/presence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ const update: Handler<UserPresence> = (update) => {
};

const listen = (uid: UserPresence['_id'], handler: Handler<UserPresence>): void => {
emitter.on(uid, handler);
emitter.on(uid, update);
emitter.on(uid, handler);
emitter.on('reset', handler);

if (store.has(uid)) {
Expand Down

0 comments on commit 15eb4ef

Please sign in to comment.