From 918c58a5f65ada1fbbb60721aac3b125adf0ebbb Mon Sep 17 00:00:00 2001 From: Scott Bender Date: Sat, 3 Aug 2024 13:51:40 -0400 Subject: [PATCH] fix: ais not getting sent because mmsi not found (#103) --- conversions/ais.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conversions/ais.js b/conversions/ais.js index ebfb7dd..aea1aa5 100644 --- a/conversions/ais.js +++ b/conversions/ais.js @@ -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)