Skip to content

Commit e4583cc

Browse files
committed
fix: check for null execution_time_seconds to prevent .toFixed() crash
1 parent 4399dd5 commit e4583cc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/personal-q/components/task-card.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ export function TaskCard({ task }: TaskCardProps) {
154154
</p>
155155
</div>
156156
)}
157-
{task.execution_time_seconds !== undefined && (
157+
{task.execution_time_seconds != null && (
158158
<div className="space-y-1">
159159
<p className="text-xs text-muted-foreground">Duration</p>
160160
<p className="text-sm font-medium">{task.execution_time_seconds.toFixed(2)}s</p>

0 commit comments

Comments
 (0)