From 312f7a692e6678eb31be5bbba6b8b7d6641c6ef6 Mon Sep 17 00:00:00 2001 From: Vadym Pavlyk Date: Mon, 16 Dec 2024 19:27:00 +0200 Subject: [PATCH] Fixed tests --- .../cooperations-container/CooperationContainer.constants.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/containers/my-cooperations/cooperations-container/CooperationContainer.constants.tsx b/src/containers/my-cooperations/cooperations-container/CooperationContainer.constants.tsx index 93f98abb9..714ba99ea 100644 --- a/src/containers/my-cooperations/cooperations-container/CooperationContainer.constants.tsx +++ b/src/containers/my-cooperations/cooperations-container/CooperationContainer.constants.tsx @@ -63,7 +63,7 @@ export const columns: TableColumn[] = [ label: 'cooperationsPage.tableHeaders.status', calculatedCellValue: ({ user, needAction, status }: Cooperation) => { const cooperationStatus = - user.role !== needAction.role && status === StatusEnum.Pending + user.role !== needAction?.role && status === StatusEnum.Pending ? StatusEnum.NeedAction : status return