Skip to content

Commit

Permalink
fix: ais not getting sent because mmsi not found (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbender9 authored Aug 3, 2024
1 parent 8ad1aa2 commit 918c58a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conversions/ais.js
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ function findDeltaValue(vessel, delta, path) {
}
}
let val = _.get(vessel, path)
return val ? val.value: undefined
return val && !_.isUndefined(val.value) ? val.value: val
}

function fillASCII(theString, len)
Expand Down

0 comments on commit 918c58a

Please sign in to comment.