Skip to content

Commit f478439

Browse files
committed
update errors
1 parent 0920836 commit f478439

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/web/src/components/tools/vercel_logs/dashboard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export default function VercelLogsDashboard() {
143143
</CardHeader>
144144
<CardContent>
145145
<div className="text-2xl font-bold text-destructive">
146-
{isLoading ? "Loading..." : `${Math.round(errorsData[0]?.error_rate ?? 0)}%`}
146+
{isLoading ? "Loading..." : `${Math.round(requestsData.filter(d => d.status > 399).reduce((acc, curr) => acc + curr.percentage, 0))}%`}
147147
</div>
148148
</CardContent>
149149
</Card>

0 commit comments

Comments
 (0)