Fix lint error

This commit is contained in:
CEC 2022-04-19 17:38:39 +02:00
parent b5039d14e2
commit 0d4e75202d

View File

@ -15,9 +15,9 @@
if(!errorScreen.buttonTitle && errorScreen.urlToRedirect) window.location.replace(errorScreen.urlToRedirect); if(!errorScreen.buttonTitle && errorScreen.urlToRedirect) window.location.replace(errorScreen.urlToRedirect);
function click() { async function click() {
if (errorScreen.urlToRedirect){ if (errorScreen.urlToRedirect) {
if(errorScreen.urlToRedirect === '/login') connectionManager.logout(); if (errorScreen.urlToRedirect === '/login') await connectionManager.logout().then().catch();
window.location.replace(errorScreen.urlToRedirect); window.location.replace(errorScreen.urlToRedirect);
} else if (errorScreen.type === "redirect" && window.history.length > 2) history.back(); } else if (errorScreen.type === "redirect" && window.history.length > 2) history.back();
else window.location.reload(); else window.location.reload();