Skip to content

Commit

Permalink
Merge pull request #877 from DEFRA/hotfix/FSR-0000
Browse files Browse the repository at this point in the history
hotfix/FSR-0000 | auto-refresh condition fix
  • Loading branch information
LeeGordon83 authored Oct 28, 2024
2 parents 2bcf9af + 2919cf8 commit a72872b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/js/components/latest-levels-auto-refresh.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class LatestLevelsAutoRefresh {
nextTargetDate.setSeconds(0)
nextTargetDate.setMilliseconds(0)

if (nowMinute > this.targetMinutes[this.targetMinutes.length - 1]) {
if (nowMinute >= this.targetMinutes[this.targetMinutes.length - 1]) {
nextTargetDate.setHours(nextTargetDate.getHours() + 1)
}

Expand Down

0 comments on commit a72872b

Please sign in to comment.