Skip to content

Commit 9a42ff8

Browse files
committed
fix: correct event type matching for red dot color
- Change from checking 'failed' or 'error' to checking 'failure' - Ensures proper red color for failure event types - Matches actual event type names from API response
1 parent ad64fb9 commit 9a42ff8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/transactions/tx/[id]/transaction-details-ui.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ function ActivityLogEntryItem({
422422
const type = eventType.toLowerCase();
423423
if (type.includes("success")) return "bg-green-500";
424424
if (type.includes("nack")) return "bg-yellow-500";
425-
if (type.includes("failed") || type.includes("error")) return "bg-red-500";
425+
if (type.includes("failure")) return "bg-red-500";
426426
return "bg-primary"; // default color
427427
};
428428

0 commit comments

Comments
 (0)