Skip to content

Commit 80686b6

Browse files
committed
Enable digital klage for Dagpenger in dev and local
1 parent f4b61a1 commit 80686b6

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/environment/environment.ts

+8-1
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,15 @@ export class Environment {
5050

5151
const jsonText = environmentElement.textContent;
5252
const variables = this.parseJsonEnvironment(jsonText);
53+
if (variables === null) {
54+
throw new EnvironmentInitError(environment, jsonText);
55+
}
56+
57+
if (environment === EnvString.LOCAL) {
58+
variables.REACT_APP_URL = `${window.location.protocol}//${window.location.host}`;
59+
}
60+
5361
if (
54-
variables === null ||
5562
typeof variables.REACT_APP_URL !== 'string' ||
5663
typeof variables.REACT_APP_API_URL !== 'string' ||
5764
typeof variables.REACT_APP_LOGINSERVICE_URL !== 'string'

src/kategorier/kategorier.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export const INNGANG_KATEGORIER: InngangKategori[] = [
5858
temaKey: TemaKey.DAG,
5959
title: 'Dagpenger',
6060
allowsAnke: true,
61-
digitalKlage: [],
61+
digitalKlage: [EnvString.DEV, EnvString.LOCAL],
6262
digitalKlageFullmakt: false,
6363
path: 'dagpenger',
6464
mailKlageUrl: 'https://www.nav.no/soknader/nb/person/arbeid/dagpenger/NAV%2004-01.03/klage/brev',

0 commit comments

Comments
 (0)