Skip to content

Commit ec2bc10

Browse files
Merge pull request #410 from dadosjusbr/no-data-annotations
Annotation bug
2 parents ec82fc6 + 6e27fc4 commit ec2bc10

File tree

1 file changed

+2
-2
lines changed
  • src/components/AnnualRemunerationGraph/functions

1 file changed

+2
-2
lines changed

src/components/AnnualRemunerationGraph/functions/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ export const getYearWithIncompleteData = (
4949
(d.meses_com_dados < 12 && d.ano < getCurrentYear()) ||
5050
(d.ano === getCurrentYear() &&
5151
new Date().getDate() > COLLECT_INFOS.COLLECT_DATE &&
52-
d.meses_com_dados < 10 - new Date().getMonth()) ||
52+
d.meses_com_dados <= 11 - new Date().getMonth()) ||
5353
(d.ano === getCurrentYear() &&
5454
new Date().getDate() < COLLECT_INFOS.COLLECT_DATE &&
55-
d.meses_com_dados < 9 - new Date().getMonth()),
55+
d.meses_com_dados <= 10 - new Date().getMonth()),
5656
);
5757

5858
const monthsWithoutData = ({ data }: { data: AnnualSummaryData[] }): number => {

0 commit comments

Comments
 (0)