Skip to content

Commit 78464c4

Browse files
chore: format
1 parent 4ccf40f commit 78464c4

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

packages/frontend/src/pages/dashboard-page.tsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,16 @@ const DashboardPage: React.FunctionComponent = () => {
6161
<>
6262
{showDayInput && (
6363
<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-
/>
64+
{day && (
65+
<DayInput
66+
primary
67+
term=""
68+
heading={getTodayHeading()}
69+
reportStatus={reportForYearAndWeek?.status}
70+
day={day}
71+
disabled={day?.status === DayStatusEnum.Holiday}
72+
/>
73+
)}
7274
</Container>
7375
)}
7476
<StyledDashboardWeeks>

0 commit comments

Comments
 (0)