Skip to content

Commit

Permalink
Bruk load timeout riktig i personovrsikt
Browse files Browse the repository at this point in the history
loadTimeout lå ikke i dependency array, så den gjorde aldri noe.
  • Loading branch information
LudvigHz committed May 31, 2024
1 parent 61b3c76 commit 2b2e58d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/personside/Personoversikt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function Personoversikt({ fnr }: { fnr: string }) {
loggInfo('Ugyldig fnr, redirecter til startside');
history.push(`${paths.basePath}`);
}
}, [fnr, gjeldendeBrukerHasLoaded]);
}, [fnr, gjeldendeBrukerHasLoaded, loadTimeout]);

if (!gjeldendeBrukerHasLoaded) {
return <CenteredLazySpinner />;
Expand Down

0 comments on commit 2b2e58d

Please sign in to comment.