Skip to content

Commit

Permalink
bruker lowercase på innlogget part for injectDecoratorServerSide. Vi …
Browse files Browse the repository at this point in the history
…fikk 500 når vi brukte all uppercase
  • Loading branch information
d142796 committed Mar 11, 2024
1 parent b24a2ec commit 950fc92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/dekorator/appMedNavDekoratoren.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ async function getNavdekoratoren(
): Promise<void> {
let innloggetPart = req.cookies['innlogget-part'];
if (['DELTAKER'].includes(innloggetPart)) {
innloggetPart = 'PRIVATPERSON';
innloggetPart = 'privatperson';
} else {
innloggetPart = 'ARBEIDSGIVER';
innloggetPart = 'arbeidsgiver';
}
return await injectDecoratorServerSide({
env: getEnv(),
Expand Down

0 comments on commit 950fc92

Please sign in to comment.