fix-lint
Some checks failed
CI / build-and-test (push) Has started running
CI / deploy (push) Has been cancelled

This commit is contained in:
SpecialX
2026-02-25 15:27:14 +08:00
parent cc02ddf82e
commit dcc946f48c
2 changed files with 4 additions and 4 deletions

View File

@@ -77,7 +77,7 @@ export function ClassSubmissionTrendChart({
data,
className
}: {
data: any[]
data: Record<string, string | number>[]
className?: string
}) {
return (
@@ -142,11 +142,11 @@ export function ClassTrendsWidget({ classId, assignments, compact, className }:
const lastAssignment = chartData[chartData.length - 1]
let metricValue = "0%"
let metricLabel = "Latest"
const metricLabel = "Latest"
if (lastAssignment) {
if (chartTab === "submission") {
metricValue = lastAssignment.target > 0
metricValue = lastAssignment.target > 0
? `${Math.round((lastAssignment.submitted / lastAssignment.target) * 100)}%`
: "0%"
} else {

View File

@@ -137,7 +137,7 @@ export function MyClassesGrid({ classes, canCreateClass }: { classes: TeacherCla
</div>
</div>
<p className="text-xs text-muted-foreground">
Ask your administrator for the code if you don't have one.
Ask your administrator for the code if you don&apos;t have one.
</p>
</div>
</div>