review fixes
This commit is contained in:
Родитель
d1d1c70694
Коммит
a12b017d2f
|
@ -244,7 +244,7 @@ async function getUnsubscribe(req, res) {
|
|||
}
|
||||
|
||||
const emailAddress = await DB.getEmailByToken(req.query.token);
|
||||
if (!subscriber && !emailAddress) {
|
||||
if (!emailAddress) {
|
||||
throw new FluentError("error-not-subscribed");
|
||||
}
|
||||
|
||||
|
|
|
@ -53,8 +53,8 @@ if (document.querySelector(".email-card")) {
|
|||
});
|
||||
}
|
||||
|
||||
if (document.querySelector(".remove-fxm")) {
|
||||
const removeMonitorButton = document.querySelector(".remove-fxm");
|
||||
const removeMonitorButton = document.querySelector(".remove-fxm");
|
||||
if (removeMonitorButton) {
|
||||
removeMonitorButton.addEventListener("click", async (e) => {
|
||||
const {formAction, primaryToken, primaryHash} = e.target.dataset;
|
||||
await sendForm(formAction, {primaryToken, primaryHash});
|
||||
|
|
Загрузка…
Ссылка в новой задаче