Skip to content

Commit f6ce6a3

Browse files
committed
refactor: remove jquery in modals/last-signout-result
1 parent 5b2d029 commit f6ce6a3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

frontend/src/ts/modals/last-signed-out-result.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,13 @@ function fillGroup(
8585
text: string | number,
8686
html = false,
8787
): void {
88+
const el = modal.getModal().querySelector(`.group.${groupClass} .val`);
89+
if (!el) return;
90+
8891
if (html) {
89-
$(modal.getModal()).find(`.group.${groupClass} .val`).html(`${text}`);
92+
el.innerHTML = `${text}`;
9093
} else {
91-
$(modal.getModal()).find(`.group.${groupClass} .val`).text(text);
94+
el.textContent = `${text}`;
9295
}
9396
}
9497

0 commit comments

Comments
 (0)