From 39d463c5926116bbf6e165b92f6794111b4dcfab Mon Sep 17 00:00:00 2001 From: Jack Greenlee Date: Mon, 20 May 2024 17:17:47 -0400 Subject: [PATCH] include primary_ble_sensed_mode in derived properties The 'showsIf' conditions in dfc-fermata currently reference 'confirmedMode'. We want to rename this to 'primary_ble_sensed_mode'. Also see https://github.com/JGreenlee/e-mission-common/commit/039633992a16c78a86713fc4a4a3735075c74527 --- www/js/diary/useDerivedProperties.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/www/js/diary/useDerivedProperties.tsx b/www/js/diary/useDerivedProperties.tsx index 06a870fe8..f13c1862d 100644 --- a/www/js/diary/useDerivedProperties.tsx +++ b/www/js/diary/useDerivedProperties.tsx @@ -8,6 +8,7 @@ import { getLocalTimeString, getDetectedModes, isMultiDay, + primarySectionForTrip, } from './diaryHelper'; import TimelineContext from '../TimelineContext'; @@ -24,6 +25,7 @@ const useDerivedProperties = (tlEntry) => { return { confirmedMode: confirmedModeFor(tlEntry), + primary_ble_sensed_mode: primarySectionForTrip(tlEntry)?.ble_sensed_mode?.baseMode, displayDate: getFormattedDate(beginFmt, endFmt), displayStartTime: getLocalTimeString(beginDt), displayEndTime: getLocalTimeString(endDt),