Skip to content

Commit

Permalink
Format code to be compatible with prettier 3.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
acelaya committed Dec 16, 2024
1 parent 0dbb6e1 commit 78e1ffa
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function GroupSelect({
buttonContent={
loading
? 'Fetching group sets…'
: selectedGroupSet?.name ?? 'Select group set'
: (selectedGroupSet?.name ?? 'Select group set')
}
>
{groupSets?.map(gs => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export default function SubmitGradeForm({
}

const newComment = acceptComments
? draftGrading.comment ?? grade.data?.comment
? (draftGrading.comment ?? grade.data?.comment)
: undefined;

setGradeSaving(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ function SegmentsMultiSelect({ segments }: { segments: SegmentsSelection }) {
All {segmentsName}
</ContentWithBadge>
) : segments.selectedIds.length === 1 ? (
segments.entries.find(
(segments.entries.find(
s => s.h_authority_provided_id === segments.selectedIds[0],
)?.name ?? `1 ${segmentNameSingular}`
)?.name ?? `1 ${segmentNameSingular}`)
) : (
<>
{segments.selectedIds.length} {segmentsName}
Expand Down Expand Up @@ -299,8 +299,8 @@ export default function DashboardActivityFilters({
All courses
</ContentWithBadge>
) : selectedCourseIds.length === 1 ? (
coursesResult.data?.find(c => `${c.id}` === selectedCourseIds[0])
?.title ?? '1 course'
(coursesResult.data?.find(c => `${c.id}` === selectedCourseIds[0])
?.title ?? '1 course')
) : (
<>{selectedCourseIds.length} courses</>
)
Expand Down Expand Up @@ -339,9 +339,9 @@ export default function DashboardActivityFilters({
All assignments
</ContentWithBadge>
) : selectedAssignmentIds.length === 1 ? (
assignmentsResults.data?.find(
(assignmentsResults.data?.find(
a => `${a.id}` === selectedAssignmentIds[0],
)?.title ?? '1 assignment'
)?.title ?? '1 assignment')
) : (
<>{selectedAssignmentIds.length} assignments</>
)
Expand Down Expand Up @@ -373,9 +373,9 @@ export default function DashboardActivityFilters({
All students
</ContentWithBadge>
) : students.selectedIds.length === 1 ? (
studentsResult.data?.find(
(studentsResult.data?.find(
s => s.h_userid === students.selectedIds[0],
)?.display_name ?? '1 student'
)?.display_name ?? '1 student')
) : (
<>{students.selectedIds.length} students</>
)
Expand Down

0 comments on commit 78e1ffa

Please sign in to comment.