diff --git a/frontend/src/ts/elements/settings/account-settings-notice.ts b/frontend/src/ts/elements/settings/account-settings-notice.ts index 7b54c68708dc..52bc92a9743a 100644 --- a/frontend/src/ts/elements/settings/account-settings-notice.ts +++ b/frontend/src/ts/elements/settings/account-settings-notice.ts @@ -1,7 +1,7 @@ import { z } from "zod"; import { LocalStorageWithSchema } from "../../utils/local-storage-with-schema"; import { navigate } from "../../controllers/route-controller"; -import { qs, qsa } from "../../utils/dom"; +import { qsa } from "../../utils/dom"; const ls = new LocalStorageWithSchema({ key: "accountSettingsMessageDismissed", @@ -13,7 +13,7 @@ if (ls.get()) { qsa(".pageSettings .accountSettingsNotice")?.remove(); } -qs(".pageSettings .accountSettingsNotice .dismissAndGo")?.on("click", () => { +qsa(".pageSettings .accountSettingsNotice .dismissAndGo").on("click", () => { ls.set(true); void navigate("/account-settings"); qsa(".pageSettings .accountSettingsNotice")?.remove(); diff --git a/frontend/src/ts/modals/quote-submit.ts b/frontend/src/ts/modals/quote-submit.ts index d3d7822bd123..d30c5b8e1f63 100644 --- a/frontend/src/ts/modals/quote-submit.ts +++ b/frontend/src/ts/modals/quote-submit.ts @@ -90,9 +90,11 @@ export async function show(showOptions: ShowOptions): Promise { }); modalEl - .qsr(".newQuoteLanguage") + .qsr("select.newQuoteLanguage") .setValue(Strings.removeLanguageSize(Config.language)); - modalEl.qsr(".newQuoteLanguage").dispatch("change"); + modalEl + .qsr("select.newQuoteLanguage") + .dispatch("change"); modalEl.qsr("input").setValue(""); new CharacterCounter(modalEl.qsr(".newQuoteText"), 250);