Skip to content

Commit

Permalink
fix(Highcharts plugin): fix tooltip holidays handling (#69)
Browse files Browse the repository at this point in the history
fix(Highcharts plugin): fix tooltip golidays handling
  • Loading branch information
korvin89 authored Nov 21, 2022
1 parent e0538fb commit 9bc3f8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/highcharts/renderer/helpers/config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -630,10 +630,10 @@ function getTooltip(tooltip, options, comments, holidays) {
if (region !== 'tot') {
json.region = region;
}
if (holidays.holiday[region][pointTimestamp]) {
if (holidays?.holiday[region][pointTimestamp]) {
json.holiday = true;
json.holidayText = holidays.holiday[region][pointTimestamp];
} else if (holidays.weekend[region][pointTimestamp]) {
} else if (holidays?.weekend[region][pointTimestamp]) {
json.weekend = true;
}

Expand Down

0 comments on commit 9bc3f8c

Please sign in to comment.