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 ||