Skip to content

Commit

Permalink
fix: ais not getting sent because mmsi not found
Browse files Browse the repository at this point in the history
  • Loading branch information
sbender9 committed Aug 3, 2024
1 parent 8ad1aa2 commit c6f8e4b
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 c6f8e4b

Please sign in to comment.