From c891864afe34a316e940069fc26e3e054adb8746 Mon Sep 17 00:00:00 2001 From: AmirHossein Mahmoodi Date: Sat, 1 Mar 2025 15:51:51 +0330 Subject: [PATCH] fixed bug --- .../dashboard/fastReact/supervisor/RowActions/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/dashboard/fastReact/supervisor/RowActions/index.jsx b/src/components/dashboard/fastReact/supervisor/RowActions/index.jsx index 6125a74..f9947ab 100644 --- a/src/components/dashboard/fastReact/supervisor/RowActions/index.jsx +++ b/src/components/dashboard/fastReact/supervisor/RowActions/index.jsx @@ -18,7 +18,7 @@ const RowActions = ({ row, mutate }) => { {hasSupervisePermission && row.original?.status === 0 && ( )} - {hasRestorePermission && } + {hasRestorePermission && row.original?.status !== 0 && } ); };