Skip to content

Commit

Permalink
Use correct types
Browse files Browse the repository at this point in the history
  • Loading branch information
oddsson committed Oct 11, 2024
1 parent eac05f6 commit aa96f55
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
RadioButton,
Text,
} from '@island.is/island-ui/core'
import { AdvocateType } from '@island.is/judicial-system/types'
import {
BlueBox,
FormContext,
Expand Down Expand Up @@ -87,8 +88,8 @@ const SelectCivilClaimantAdvocate: FC<Props> = ({ civilClaimant }) => {
clientId={civilClaimant.id}
advocateType={
civilClaimant.spokespersonIsLawyer
? 'defender'
: 'legal_rights_protector'
? AdvocateType.LAWYER
: AdvocateType.LEGAL_RIGHTS_PROTECTOR
}
disabled={
civilClaimant.spokespersonIsLawyer === null ||
Expand Down

0 comments on commit aa96f55

Please sign in to comment.