Skip to content

Commit

Permalink
Korriger henting av fnr fra sessionStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
madsleegiil committed Oct 2, 2024
1 parent afe5f0a commit 2e43bd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/aktivitetAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const oppdaterAktivitet = (aktivitet: VeilarbAktivitet): Promise<VeilarbA
putAsJson(`${AKTIVITET_BASE_URL}/aktivitet/${aktivitet.id}`, aktivitet);

export const hentInnsynsrett = (): Promise<{ foresatteHarInnsynsrett: boolean }> => {
return postAsJson(`${AKTIVITET_BASE_URL}/innsynsrett`, { fnr: LocalStorageElement.FNR });
return postAsJson(`${AKTIVITET_BASE_URL}/innsynsrett`, { fnr: hentFraSessionStorage(LocalStorageElement.FNR) });
};

export const settAktivitetTilAvtalt = (
Expand Down

0 comments on commit 2e43bd2

Please sign in to comment.