diff --git a/frontend/src/components/StatusBadge.jsx b/frontend/src/components/StatusBadge.jsx index 77cfcbf..6b2ca90 100644 --- a/frontend/src/components/StatusBadge.jsx +++ b/frontend/src/components/StatusBadge.jsx @@ -48,8 +48,9 @@ export default function StatusBadge({ code = '', text = '', size = 'sm' }) { return badge(, '請假', 'bg-violet-100 text-violet-700') } - // 正常 - if (c === 'normal' && !t) { + // 正常 (only when status_code is 'normal' — text suffix like '+ CL4h' is allowed, + // we still want to flag it as 正常 first since the employee did clock in/out normally) + if (c === 'normal') { return badge(, '正常', 'bg-green-100 text-green-700') }