Skip to content

Commit

Permalink
fix(A/B Trails): Highlight the last passed point when there is an error
Browse files Browse the repository at this point in the history
  • Loading branch information
BamMironov committed Feb 17, 2023
1 parent 76dbd59 commit 50797e8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/widgets/ABTrails/TrailsBoard.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,14 @@ export default class TrailsBoard extends Component {
itemColor = trailsData.colors.passed;
}

if (errorPoints.length) {
const isLastPassedPoint = errorPoints.find(errorPoint => (
errorPoint.start === item.label
))

itemColor = isLastPassedPoint ? trailsData.colors.passed : itemColor;
}

return (
<>
<Circle
Expand Down

0 comments on commit 50797e8

Please sign in to comment.