diff --git a/lms/static/scripts/frontend_apps/components/GroupConfigSelector.tsx b/lms/static/scripts/frontend_apps/components/GroupConfigSelector.tsx index b845b41a20..13740f7e66 100644 --- a/lms/static/scripts/frontend_apps/components/GroupConfigSelector.tsx +++ b/lms/static/scripts/frontend_apps/components/GroupConfigSelector.tsx @@ -77,7 +77,7 @@ function GroupSelect({ buttonContent={ loading ? 'Fetching group sets…' - : selectedGroupSet?.name ?? 'Select group set' + : (selectedGroupSet?.name ?? 'Select group set') } > {groupSets?.map(gs => ( diff --git a/lms/static/scripts/frontend_apps/components/SubmitGradeForm.tsx b/lms/static/scripts/frontend_apps/components/SubmitGradeForm.tsx index d1402331f5..d3e63ddef7 100644 --- a/lms/static/scripts/frontend_apps/components/SubmitGradeForm.tsx +++ b/lms/static/scripts/frontend_apps/components/SubmitGradeForm.tsx @@ -168,7 +168,7 @@ export default function SubmitGradeForm({ } const newComment = acceptComments - ? draftGrading.comment ?? grade.data?.comment + ? (draftGrading.comment ?? grade.data?.comment) : undefined; setGradeSaving(true); diff --git a/lms/static/scripts/frontend_apps/components/dashboard/DashboardActivityFilters.tsx b/lms/static/scripts/frontend_apps/components/dashboard/DashboardActivityFilters.tsx index 9397fb9330..c99313f62c 100644 --- a/lms/static/scripts/frontend_apps/components/dashboard/DashboardActivityFilters.tsx +++ b/lms/static/scripts/frontend_apps/components/dashboard/DashboardActivityFilters.tsx @@ -151,9 +151,9 @@ function SegmentsMultiSelect({ segments }: { segments: SegmentsSelection }) { All {segmentsName} ) : 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} @@ -299,8 +299,8 @@ export default function DashboardActivityFilters({ All courses ) : 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 ) @@ -339,9 +339,9 @@ export default function DashboardActivityFilters({ All assignments ) : selectedAssignmentIds.length === 1 ? ( - assignmentsResults.data?.find( + (assignmentsResults.data?.find( a => `${a.id}` === selectedAssignmentIds[0], - )?.title ?? '1 assignment' + )?.title ?? '1 assignment') ) : ( <>{selectedAssignmentIds.length} assignments ) @@ -373,9 +373,9 @@ export default function DashboardActivityFilters({ All students ) : 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 ) diff --git a/package.json b/package.json index 3c5ad932e1..5e0b754954 100644 --- a/package.json +++ b/package.json @@ -76,7 +76,7 @@ "karma-source-map-support": "^1.4.0", "mocha": "^10.2.0", "navigation-api-types": "^0.5.1", - "prettier": "3.2.5", + "prettier": "3.4.2", "sinon": "^19.0.2", "typescript": "^5.2.2", "typescript-eslint": "^8.16.0" diff --git a/yarn.lock b/yarn.lock index f049f3673c..20d0688063 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7340,7 +7340,7 @@ __metadata: normalize.css: ^8.0.1 postcss: ^8.4.47 preact: ^10.25.1 - prettier: 3.2.5 + prettier: 3.4.2 rollup: ^4.28.0 sass: ^1.80.5 sinon: ^19.0.2 @@ -8657,12 +8657,12 @@ __metadata: languageName: node linkType: hard -"prettier@npm:3.2.5": - version: 3.2.5 - resolution: "prettier@npm:3.2.5" +"prettier@npm:3.4.2": + version: 3.4.2 + resolution: "prettier@npm:3.4.2" bin: prettier: bin/prettier.cjs - checksum: 2ee4e1417572372afb7a13bb446b34f20f1bf1747db77cf6ccaf57a9be005f2f15c40f903d41a6b79eec3f57fff14d32a20fb6dee1f126da48908926fe43c311 + checksum: 061c84513db62d3944c8dc8df36584dad82883ce4e49efcdbedd8703dce5b173c33fd9d2a4e1725d642a3b713c932b55418342eaa347479bc4a9cca114a04cd0 languageName: node linkType: hard