From 24f6d88308913ad7cc53fa16ff73e5b844c09fe8 Mon Sep 17 00:00:00 2001 From: cvium Date: Mon, 29 Mar 2021 20:51:41 +0200 Subject: [PATCH] please mr linter --- src/components/appRouter.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/appRouter.js b/src/components/appRouter.js index 514dedc714..400c615d1d 100644 --- a/src/components/appRouter.js +++ b/src/components/appRouter.js @@ -424,13 +424,12 @@ class AppRouter { onRequestFail(e, data) { const apiClient = this; - + // 401 means the credentials are broken if (data.status === 401) { console.debug('Invalid stored credentials, redirecting to login'); appRouter.showLocalLogin(apiClient.serverId()); - } - else if (data.status === 403) { + } else if (data.status === 403) { if (data.errorCode === 'ParentalControl') { const isCurrentAllowed = this.currentRouteInfo ? (this.currentRouteInfo.route.anonymous || this.currentRouteInfo.route.startup) : true;