Skip to content

Commit

Permalink
fix: correct timelineButton.alert for day leadTimes AB#7421
Browse files Browse the repository at this point in the history
  • Loading branch information
jannisvisser committed Apr 30, 2021
1 parent 49bf3c5 commit ac48d2b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ export class TimelineService {
date: this.getLeadTimeDate(leadTime, triggerKey),
unit: leadTime.split('-')[1] as LeadTimeUnit,
value: leadTime,
alert: this.triggers[leadTime] === '1',
alert:
this.triggers[
leadTime.includes('day') ? leadTime.substr(0, 1) : leadTime
] === '1',
disabled: isLeadTimeDisabled,
active: false,
};
Expand Down

0 comments on commit ac48d2b

Please sign in to comment.