Skip to content

Commit

Permalink
Force as non-null
Browse files Browse the repository at this point in the history
  • Loading branch information
louptheron committed Oct 9, 2024
1 parent 5aab5cc commit 95f1782
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export function VesselCard({ feature, numberOfWarnings, overlayPosition }) {
<VesselCardAlert data-cy="vessel-card-alert">
<AlertIcon size={17} />
{vesselProperties.alerts?.length === 1
? getAlertNameFromType(vesselProperties.alerts[0])
? getAlertNameFromType(vesselProperties.alerts[0]!)
: `${vesselProperties.alerts?.length} alertes`}
</VesselCardAlert>
)}
Expand Down

0 comments on commit 95f1782

Please sign in to comment.