Skip to content

Commit

Permalink
Fix name label in control unit dialog contact list
Browse files Browse the repository at this point in the history
  • Loading branch information
ivangabriele committed Oct 11, 2023
1 parent ea98bcf commit fafe1ae
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import { Accent, Icon, IconButton } from '@mtes-mct/monitor-ui'
import { useCallback } from 'react'
import styled from 'styled-components'

import type { ControlUnit } from '../../../../../domain/entities/controlUnit'
import { ControlUnit } from '../../../../../domain/entities/controlUnit'

import type { Promisable } from 'type-fest'

export type ItemProps = {
Expand All @@ -18,7 +19,7 @@ export function Item({ controlUnitContact, onEdit }: ItemProps) {
<Wrapper>
<Left>
<p>
<Name>{controlUnitContact.name}</Name>
<Name>{ControlUnit.ControlUnitContactName[controlUnitContact.name] || controlUnitContact.name}</Name>
<Phone>{controlUnitContact.phone}</Phone>
</p>
<p>
Expand Down

0 comments on commit fafe1ae

Please sign in to comment.