From f3214352efb9ef5e2d3eca05dd896a08b61b2409 Mon Sep 17 00:00:00 2001 From: Zak Burke Date: Thu, 14 Dec 2023 07:18:49 -0500 Subject: [PATCH] lint cleanup, console.log cleanup --- src/components/OIDCLanding.js | 3 ++- src/serviceWorkerRegistration.js | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/OIDCLanding.js b/src/components/OIDCLanding.js index 4f1a716ef..82ae09c1c 100644 --- a/src/components/OIDCLanding.js +++ b/src/components/OIDCLanding.js @@ -72,11 +72,12 @@ const OIDCLanding = () => { } }) .catch(e => { + // eslint-disable-next-line no-console console.error('@@ Oh, snap, OTP exchange failed!', e); samlError.current = e; }); } - }, [otp, store]); + }, [otp, store, okapi.tenant, okapi.url]); if (!otp) { return ( diff --git a/src/serviceWorkerRegistration.js b/src/serviceWorkerRegistration.js index 91edc28cf..aef7f9771 100644 --- a/src/serviceWorkerRegistration.js +++ b/src/serviceWorkerRegistration.js @@ -1,12 +1,10 @@ export const registerServiceWorker = async () => { }; export const unregisterServiceWorker = async () => { - console.log('-- (rtr) unregistering service worker ...'); // eslint-disable-line no-console if ('serviceWorker' in navigator) { navigator.serviceWorker.ready .then((reg) => { reg.unregister(); - console.log('-- (rtr) ... unregistered!'); // eslint-disable-line no-console }) .catch((error) => { console.error(error.message); // eslint-disable-line no-console