We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec31dd8 commit d7f716aCopy full SHA for d7f716a
frontend/src/ts/modals/user-report.ts
@@ -83,8 +83,12 @@ async function submitReport(): Promise<void> {
83
return;
84
}
85
86
- const reason = $("#userReportModal .reason").val() as ReportUserReason;
87
- const comment = $("#userReportModal .comment").val() as string;
+ const reason = qsr<HTMLSelectElement>(
+ "#userReportModal .reason",
88
+ ).getValue() as ReportUserReason;
89
+ const comment = qsr<HTMLTextAreaElement>(
90
+ "#userReportModal .comment",
91
+ ).getValue() as string;
92
const captcha = captchaResponse;
93
94
if (!reason) {
0 commit comments