Skip to content

Commit

Permalink
Merge pull request AutomaApp#1133 from kinfuy/fix-messageListener
Browse files Browse the repository at this point in the history
fix: MessageListener on Judgment is meaningless (AutomaApp#1132)
  • Loading branch information
Kholid060 authored Jan 30, 2023
2 parents 8dc4d3d + 22a6942 commit d1dac2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/message.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export class MessageListener {
}

on(name, listener) {
if (objectHasKey(this.listeners, 'name')) {
if (objectHasKey(this.listeners, name)) {
console.error(`You already added ${name}`);
return this.on;
}
Expand Down

0 comments on commit d1dac2a

Please sign in to comment.