fix linting

This commit is contained in:
Arthur Lu 2023-11-14 22:24:26 +00:00
parent e97f8d5bbc
commit 7f4bdacef0

View File

@ -133,7 +133,7 @@ function handlePasswordChangeForm () {
`; `;
dialog("Change Password", body, async (result, form) => { dialog("Change Password", body, async (result, form) => {
if (result === "confirm") { if (result === "confirm") {
const result = await requestAPI("/auth/password", "POST", {password: form.get("new-password")}); const result = await requestAPI("/auth/password", "POST", { password: form.get("new-password") });
if (result.status !== 200) { if (result.status !== 200) {
alert(result.error); alert(result.error);
} }