fix: Law10Tab runtime error - add missing translation function parameter

Fixed critical bug causing Law10Tab to crash with "TypeError: a is not a function".
The getStatusLabel() function was being called without the required 't' parameter
on line 1244, causing a runtime error when rendering the compliance summary table.

Error: Uncaught TypeError: a is not a function at tr (index-yIapr3VZ.js:544:35927)
Fix: Changed getStatusLabel(req.result.status) to getStatusLabel(req.result.status, t)

Law10Tab now loads correctly without errors.

https://claude.ai/code/session_01GNbnkFoESkRcnPr3bLCYDg
This commit is contained in:
Claude
2026-02-07 17:29:06 +00:00
parent 2a52eb6508
commit a3a645008c

View File

@@ -1241,7 +1241,7 @@ function Law10SummaryRoadmap({
<div className="flex items-center justify-center gap-2">
<StatusIcon status={req.result.status} />
<Badge
label={getStatusLabel(req.result.status)}
label={getStatusLabel(req.result.status, t)}
variant={getStatusBadgeVariant(req.result.status)}
size="sm"
/>