Fix StatusBadge crash when status is undefined

This commit is contained in:
Lukas May
2026-02-18 17:44:38 +09:00
parent 8bece70a61
commit 80aa3e42fb

View File

@@ -28,6 +28,7 @@ interface StatusBadgeProps {
}
export function StatusBadge({ status, className }: StatusBadgeProps) {
if (!status) return null;
const style = statusStyles[status] ?? defaultStyle;
return (