diff --git a/src/App/useUserInfo.ts b/src/App/useUserInfo.ts index c035819b4..672ee5fe6 100644 --- a/src/App/useUserInfo.ts +++ b/src/App/useUserInfo.ts @@ -8,7 +8,7 @@ import { Set } from 'immutable'; import { useState } from 'react'; const UserInfoRespons = z.object({ - loaded: z.boolean(), + loaded: z.boolean().optional().default(true), altinnError: z.boolean(), organisasjoner: z.array(Organisasjon), tilganger: z