From 69cecd2c396d3dca98be2a7435e4231b14d24c84 Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Mon, 13 Jan 2025 09:35:10 +0100 Subject: [PATCH] date and status fixed --- src/component/home/RecentActions.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/component/home/RecentActions.jsx b/src/component/home/RecentActions.jsx index 930e425..a3a0b49 100644 --- a/src/component/home/RecentActions.jsx +++ b/src/component/home/RecentActions.jsx @@ -90,14 +90,15 @@ export default function RecentActions() { {actionData && actionData?.actions.map((action, index) => { - let bgColor = action?.status == 'completed' ? 'badge-success-inverse' : action?.status == 'verifying' ? 'badge-info-inverse' : action?.status == 'processing' ? 'badge-warning-inverse' : 'badge-primary-inverse' + let bgColor = action?.status == '5' ? 'badge-success-inverse' : action?.status == '3' ? 'badge-info-inverse' : action?.status == '0' ? 'badge-warning-inverse' : 'badge-primary-inverse' + let text = action?.status == '5' ? 'completed' : action?.status == '3' ? 'verifying' : action?.status == '0' ? 'processing' : 'processing' return ( {action?.no} {action?.description} {new Date(action?.date).toDateString()} - + )