Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:GlobalFishingWatch/frontend into…
Browse files Browse the repository at this point in the history
… develop
  • Loading branch information
satellitestudiodesign committed Oct 23, 2023
2 parents 58f8c0d + 18e9e28 commit 7737d21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/fishing-map/utils/info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ export const getVesselShipType = (
joinCharacter?: string
translationFn?: TFunction
}
): VesselType | typeof EMPTY_FIELD_PLACEHOLDER => {
): VesselType => {
const shipTypes = Array.isArray(shiptype) ? shiptype : [shiptype]
if (shipTypes.every((shiptype) => shiptype === undefined)) {
return EMPTY_FIELD_PLACEHOLDER
return EMPTY_FIELD_PLACEHOLDER as VesselType
}
return shipTypes
.filter(Boolean)
Expand Down

0 comments on commit 7737d21

Please sign in to comment.