mail-unlink: break in case

This commit is contained in:
May 2023-09-30 21:45:11 -07:00
parent f27f7b8921
commit 4def0d3fa6

View file

@ -134,12 +134,13 @@ export function emailPotentialRemove(optPicker) {
switch (exp.selected) { switch (exp.selected) {
case "set": case "set":
emailChange(optPicker); emailChange(optPicker);
break
case "disconnect": case "disconnect":
fetch("/auth/remove_email", {method: "POST"}).then((response) => { fetch("/auth/remove_email", {method: "POST"}).then((response) => {
if (response.status != 200) { if (response.status != 200) {
optPicker.picker(`${response.status} ${response.headers.get("x-backup-status-message") || response.statusText || ""}`,[]) optPicker.picker(`${response.status} ${response.headers.get("x-backup-status-message") || response.statusText || ""}`,[])
} }
fetchAccountData() fetchAccountData()
}) })
} }