Skip to content

Commit

Permalink
Merge pull request #4748 from wri/develop
Browse files Browse the repository at this point in the history
Deploy
  • Loading branch information
willian-viana authored Jan 31, 2024
2 parents 153a740 + 9e62dc1 commit fb53481
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/widgets/fires/fires-alerts/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export const parseData = createSelector(
);

const findWeek = weekFound ? startWeek : 1;
const findYear = compareStartYear + 1;
const findYear = weekFound ? compareStartYear : compareStartYear + 1;
const compareStartIndex = data.findIndex(
(el) => el.year === findYear && el.week === findWeek
);
Expand Down

0 comments on commit fb53481

Please sign in to comment.