We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ccf40f commit 78464c4Copy full SHA for 78464c4
packages/frontend/src/pages/dashboard-page.tsx
@@ -61,14 +61,16 @@ const DashboardPage: React.FunctionComponent = () => {
61
<>
62
{showDayInput && (
63
<Container overflow={'visible'}>
64
- <DayInput
65
- primary
66
- term=""
67
- heading={getTodayHeading()}
68
- reportStatus={reportForYearAndWeek?.status}
69
- day={day}
70
- disabled={day?.status === DayStatusEnum.Holiday}
71
- />
+ {day && (
+ <DayInput
+ primary
+ term=""
+ heading={getTodayHeading()}
+ reportStatus={reportForYearAndWeek?.status}
+ day={day}
+ disabled={day?.status === DayStatusEnum.Holiday}
72
+ />
73
+ )}
74
</Container>
75
)}
76
<StyledDashboardWeeks>
0 commit comments