Skip to content

Commit

Permalink
include primary_ble_sensed_mode in derived properties
Browse files Browse the repository at this point in the history
The 'showsIf' conditions in dfc-fermata currently reference 'confirmedMode'. We want to rename this to 'primary_ble_sensed_mode'.

Also see JGreenlee/e-mission-common@0396339
  • Loading branch information
JGreenlee committed May 21, 2024
1 parent db893d5 commit 39d463c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions www/js/diary/useDerivedProperties.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
getLocalTimeString,
getDetectedModes,
isMultiDay,
primarySectionForTrip,
} from './diaryHelper';
import TimelineContext from '../TimelineContext';

Expand All @@ -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),
Expand Down

0 comments on commit 39d463c

Please sign in to comment.