Skip to content

Commit

Permalink
1 - report: fix query selector scope
Browse files Browse the repository at this point in the history
  • Loading branch information
Donorhan committed Nov 4, 2022
1 parent 9d47c98 commit b834efe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/modules/report/client/report.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const onSubmit = (reason, reported, messageId) => {
}
const isAdmin = Meteor.users.findOne(Meteor.userId()).roles?.admin;

const text = document.querySelector('.js-command-input').value;
const text = document.querySelector('.report .js-command-input').value;
const currentLevel = Meteor.user().profile.levelId;
if (!text) {
lp.notif.error('Please enter a message');
Expand Down

0 comments on commit b834efe

Please sign in to comment.