From 73c9f791ef02ec2888fbd06b65437dce93a09da6 Mon Sep 17 00:00:00 2001 From: Terje Karlsen Date: Tue, 19 Dec 2023 10:42:22 +0100 Subject: [PATCH] =?UTF-8?q?Kj=C3=B8rer=20keydownlistener=20kun=20=C3=A9n?= =?UTF-8?q?=20gang=20ved=20utloggingsvarsel.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 2 +- src/api/api.ts | 2 +- src/komponenter/header/logoutWarning/LogoutWarning.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.env b/.env index 4c1693313..eb89d98f3 100644 --- a/.env +++ b/.env @@ -3,7 +3,7 @@ XP_BASE_URL=https://www.nav.no APP_BASE_URL=http://localhost:8088 APP_BASE_PATH=/dekoratoren API_XP_SERVICES_URL=https://www.nav.no/_/service -API_DEKORATOREN_URL=http://localhost:8095/nav-dekoratoren-api +API_DEKORATOREN_URL=http://localhost:8088/dekoratoren/api MINSIDE_ARBEIDSGIVER_URL=https://arbeidsgiver.nav.no/min-side-arbeidsgiver/ MIN_SIDE_URL=https:/www.nav.no/minside/ LOGIN_URL=http://localhost:50000 diff --git a/src/api/api.ts b/src/api/api.ts index 30a4f4542..397043f43 100644 --- a/src/api/api.ts +++ b/src/api/api.ts @@ -34,7 +34,7 @@ export const hentInnloggingsstatusFetch = (environment: Environment): Promise = fetchToJson(`${API_DEKORATOREN_URL}/auth`, { credentials: 'include', diff --git a/src/komponenter/header/logoutWarning/LogoutWarning.tsx b/src/komponenter/header/logoutWarning/LogoutWarning.tsx index dd48013c2..21a002251 100644 --- a/src/komponenter/header/logoutWarning/LogoutWarning.tsx +++ b/src/komponenter/header/logoutWarning/LogoutWarning.tsx @@ -35,7 +35,7 @@ export const LogoutWarning = () => { return () => { window.removeEventListener('keydown', onKeydownHandler); }; - }, [dialogRef.current]); + }, []); useEffect(() => { if (isTokenExpiring || isSessionExpiring) {