Skip to content

Commit

Permalink
feat: Handle all modes from openpath
Browse files Browse the repository at this point in the history
  • Loading branch information
Merkur39 committed Oct 6, 2023
1 parent 93e669d commit 14af8fe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/cozy-harvest-lib/src/datacards/trips.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ export const getModes = trip => {
}
})
)
.map(x => (x ? x.split('PredictedModeTypes.')[1] : null))
.map(x =>
x
? x.split('PredictedModeTypes.')[1] || x.split('MotionTypes.')[1]
: null
)
.filter(Boolean)
)
}

0 comments on commit 14af8fe

Please sign in to comment.