From 8fead2be0c929848bb53d6749d4fc98843208471 Mon Sep 17 00:00:00 2001 From: hfhelgason Date: Mon, 16 Dec 2024 15:09:38 +0000 Subject: [PATCH] fix(new-primary-school): mock users dev --- .../templates/new-primary-school/new-primary-school.service.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libs/application/template-api-modules/src/lib/modules/templates/new-primary-school/new-primary-school.service.ts b/libs/application/template-api-modules/src/lib/modules/templates/new-primary-school/new-primary-school.service.ts index 15b415938eec..ce131be8fb24 100644 --- a/libs/application/template-api-modules/src/lib/modules/templates/new-primary-school/new-primary-school.service.ts +++ b/libs/application/template-api-modules/src/lib/modules/templates/new-primary-school/new-primary-school.service.ts @@ -13,7 +13,6 @@ import { TemplateApiModuleActionProps } from '../../../types' import { BaseTemplateApiService } from '../../base-template-api.service' import { transformApplicationToNewPrimarySchoolDTO } from './new-primary-school.utils' import { isRunningOnEnvironment } from '@island.is/shared/utils' -import { isRunningInProduction } from '../parental-leave/constants' @Injectable() export class NewPrimarySchoolService extends BaseTemplateApiService { @@ -39,7 +38,7 @@ export class NewPrimarySchoolService extends BaseTemplateApiService { } async getChildren({ auth }: TemplateApiModuleActionProps) { - if (!isRunningInProduction) { + if (isRunningOnEnvironment('dev')) { if (auth.nationalId === '0101303019') { return [ {