From a3439ff942618df1d3f83dcc04a8c40db710fd82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=8Dvar=20Oddsson?= Date: Fri, 11 Oct 2024 10:37:20 +0000 Subject: [PATCH] Use correct types --- .../Prosecutor/Indictments/Processing/Processing.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/judicial-system/web/src/routes/Prosecutor/Indictments/Processing/Processing.tsx b/apps/judicial-system/web/src/routes/Prosecutor/Indictments/Processing/Processing.tsx index c76de5e43862..3a1800e8c7a2 100644 --- a/apps/judicial-system/web/src/routes/Prosecutor/Indictments/Processing/Processing.tsx +++ b/apps/judicial-system/web/src/routes/Prosecutor/Indictments/Processing/Processing.tsx @@ -10,7 +10,10 @@ import { Text, } from '@island.is/island-ui/core' import * as constants from '@island.is/judicial-system/consts' -import { isTrafficViolationCase } from '@island.is/judicial-system/types' +import { + AdvocateType, + isTrafficViolationCase, +} from '@island.is/judicial-system/types' import { core, titles } from '@island.is/judicial-system-web/messages' import { BlueBox, @@ -596,8 +599,8 @@ const Processing: FC = () => { clientId={civilClaimant.id} advocateType={ civilClaimant.spokespersonIsLawyer - ? 'defender' - : 'legal_rights_protector' + ? AdvocateType.LAWYER + : AdvocateType.LEGAL_RIGHTS_PROTECTOR } disabled={ civilClaimant.spokespersonIsLawyer === null ||