shorthand if

This commit is contained in:
Matteo Manzinello 2019-10-28 11:17:33 +01:00
parent ec6c123437
commit 6897c001ca

View File

@ -787,12 +787,11 @@
// is the mailgo modal hidden? // is the mailgo modal hidden?
const mailgoIsShowing = (type = MAIL_TYPE) => { const mailgoIsShowing = (type = MAIL_TYPE) => {
if (type === MAIL_TYPE) { return type === MAIL_TYPE
return getDisplay("mailgo") === "flex"; ? getDisplay("mailgo") === "flex"
} else if (type === TEL_TYPE) { : type === TEL_TYPE
return getDisplay("mailgo-tel") === "flex"; ? getDisplay("mailgo-tel") === "flex"
} : false;
return false;
}; };
// window exists // window exists