From c83e7d1ed91f57acebca9218b1a04d6e6d62481a Mon Sep 17 00:00:00 2001 From: Christoffer Karlsson Date: Fri, 22 Nov 2024 10:01:24 +0100 Subject: [PATCH] 404 is an expected response, should only error log if the response is not 404 --- src/app/_common/actions/userActions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/_common/actions/userActions.ts b/src/app/_common/actions/userActions.ts index 7596062aa..c03047a3b 100644 --- a/src/app/_common/actions/userActions.ts +++ b/src/app/_common/actions/userActions.ts @@ -34,7 +34,7 @@ export async function getUser() { } if (!res.ok) { - if (res.status === 404) { + if (res.status !== 404) { logger.error(`GET user from aduser failed. ${res.status} ${res.statusText}`); }