We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ec82fc6 + 6e27fc4 commit ec2bc10Copy full SHA for ec2bc10
src/components/AnnualRemunerationGraph/functions/index.ts
@@ -49,10 +49,10 @@ export const getYearWithIncompleteData = (
49
(d.meses_com_dados < 12 && d.ano < getCurrentYear()) ||
50
(d.ano === getCurrentYear() &&
51
new Date().getDate() > COLLECT_INFOS.COLLECT_DATE &&
52
- d.meses_com_dados < 10 - new Date().getMonth()) ||
+ d.meses_com_dados <= 11 - new Date().getMonth()) ||
53
54
new Date().getDate() < COLLECT_INFOS.COLLECT_DATE &&
55
- d.meses_com_dados < 9 - new Date().getMonth()),
+ d.meses_com_dados <= 10 - new Date().getMonth()),
56
);
57
58
const monthsWithoutData = ({ data }: { data: AnnualSummaryData[] }): number => {
0 commit comments