Skip to content

Commit

Permalink
fix(stats): display panel even if there is not data
Browse files Browse the repository at this point in the history
  • Loading branch information
Clm-Roig committed Aug 8, 2022
1 parent f88c3bc commit d29674d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/Statistics/MonthPanel/MonthPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const MonthPanel: FC<Props> = ({ beginDate, setBeginDate, tracker }) => {
noCompletionsText="Il n'y a pas eu d'activité durant le mois pour le tracker sélectionné."
/>
</SpacedBox>
{monthEntries.length > 0 && <MonthChart beginDate={beginDate} entries={monthEntries} />}
<MonthChart beginDate={beginDate} entries={monthEntries} />
</>
);
};
Expand Down
2 changes: 1 addition & 1 deletion src/components/Statistics/WeekPanel/WeekPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const WeekPanel: FC<Props> = ({ beginDate, setBeginDate, tracker }) => {
noCompletionsText="Il n'y a pas eu d'activité durant la semaine pour le tracker sélectionné."
/>
</SpacedBox>
{weekEntries.length > 0 && <WeekChart beginDate={beginDate} entries={weekEntries} />}
<WeekChart beginDate={beginDate} entries={weekEntries} />
</>
);
};
Expand Down
2 changes: 1 addition & 1 deletion src/components/Statistics/YearPanel/YearPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const YearPanel: FC<Props> = ({ beginDate, setBeginDate, tracker }) => {
noCompletionsText="Il n'y a pas eu d'activité durant le mois pour le tracker sélectionné."
/>
</SpacedBox>
{yearEntries.length > 0 && <YearChart beginDate={beginDate} entries={yearEntries} />}
<YearChart beginDate={beginDate} entries={yearEntries} />
</>
);
};
Expand Down

0 comments on commit d29674d

Please sign in to comment.