From a457de8eed449f05e2943ba2c9215e0efd62be7c Mon Sep 17 00:00:00 2001 From: ramziabuqassim Date: Thu, 16 Nov 2023 12:28:12 +0100 Subject: [PATCH] Fix condition for checking outdated claim basis in getSakvarsler function for kravgrunnlag --- src/utils/SakUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/SakUtils.ts b/src/utils/SakUtils.ts index 1130d7e12..b4c64001d 100644 --- a/src/utils/SakUtils.ts +++ b/src/utils/SakUtils.ts @@ -17,7 +17,7 @@ export const getSakvarsler = (arg: { sak: Sak; søker: Person }): SakvarseltypeM if (arg.sak.tilbakekrevinger.length > 0) { arg.sak.tilbakekrevinger.filter(erTilbakekrevingsbehandlingÅpen).forEach((t) => { - if (!t.erKravgrunnlagUtdatert) { + if (t.erKravgrunnlagUtdatert) { varsel.push({ type: SakvarselType.NYTT_KRAVGRUNNLAG_MED_ÅPEN_TILBAKEKREVING, context: { behandlingId: t.id },