Skip to content

Commit d7f716a

Browse files
committed
refactor: remove jquery in modals/user-report
1 parent ec31dd8 commit d7f716a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

frontend/src/ts/modals/user-report.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,12 @@ async function submitReport(): Promise<void> {
8383
return;
8484
}
8585

86-
const reason = $("#userReportModal .reason").val() as ReportUserReason;
87-
const comment = $("#userReportModal .comment").val() as string;
86+
const reason = qsr<HTMLSelectElement>(
87+
"#userReportModal .reason",
88+
).getValue() as ReportUserReason;
89+
const comment = qsr<HTMLTextAreaElement>(
90+
"#userReportModal .comment",
91+
).getValue() as string;
8892
const captcha = captchaResponse;
8993

9094
if (!reason) {

0 commit comments

Comments
 (0)