Skip to content

Commit 38715b4

Browse files
Austin-Xgithub-actions[bot]
authored andcommitted
Auto-formatted the code using Prettier
1 parent 31305fa commit 38715b4

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

course-matrix/frontend/src/pages/TimetableBuilder/Calendar.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,11 @@ const Calendar = React.memo<CalendarProps>(
201201
),
202202
),
203203
].length;
204-
const allOfferingSectionsHaveBeenSelected = isEditingTimetable ? !numberOfSectionsData || !offeringsData || totalNumberOfSelectedSections === totalNumberOfRequiredSections : totalNumberOfSelectedSections === totalNumberOfRequiredSections;
204+
const allOfferingSectionsHaveBeenSelected = isEditingTimetable
205+
? !numberOfSectionsData ||
206+
!offeringsData ||
207+
totalNumberOfSelectedSections === totalNumberOfRequiredSections
208+
: totalNumberOfSelectedSections === totalNumberOfRequiredSections;
205209

206210
useEffect(() => {
207211
if (!isEditingTimetable) {

course-matrix/frontend/src/pages/TimetableBuilder/TimetableBuilder.tsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -362,13 +362,15 @@ const TimetableBuilder = () => {
362362
<Button size="sm" variant="outline" onClick={handleReset}>
363363
Reset
364364
</Button>
365-
{isEditingTimetable && <Button
366-
size="sm"
367-
variant="outline"
368-
onClick={() => setOpenShareDialog(true)}
369-
>
370-
Share
371-
</Button>}
365+
{isEditingTimetable && (
366+
<Button
367+
size="sm"
368+
variant="outline"
369+
onClick={() => setOpenShareDialog(true)}
370+
>
371+
Share
372+
</Button>
373+
)}
372374
{isEditingTimetable && (
373375
<ShareDialog
374376
open={openShareDialog}

0 commit comments

Comments
 (0)