Skip to content

Commit

Permalink
🐛 unwrappe soknadContextState i lokal mellomlagring
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Rognes <[email protected]>
  • Loading branch information
tidnav and thomasrognes committed May 31, 2024
1 parent 2d1e186 commit e77c733
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pages/api/mellomlagring/les.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ export const hentMellomlagring = async (
}
if (isMock()) {
const result = await lesCache();
return result ? JSON.parse(result) : {};
const parsedResult = result ? JSON.parse(result) : {};
return parsedResult?.soknad || {};
}
try {
const mellomlagretSøknad = await simpleTokenXProxy<SoknadContextState | string>({
Expand Down

0 comments on commit e77c733

Please sign in to comment.