From 27f35416a31ee6f7bf8e1500b6e4487f3c2b695f Mon Sep 17 00:00:00 2001 From: GreenAsJade Date: Tue, 13 Aug 2024 20:44:38 +0930 Subject: [PATCH] Cater for backend not supplying outcome --- src/views/ReportsCenter/ReportsCenterCMHistory.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/ReportsCenter/ReportsCenterCMHistory.tsx b/src/views/ReportsCenter/ReportsCenterCMHistory.tsx index 3751708c00..d303b5edb6 100644 --- a/src/views/ReportsCenter/ReportsCenterCMHistory.tsx +++ b/src/views/ReportsCenter/ReportsCenterCMHistory.tsx @@ -84,7 +84,7 @@ export function ReportsCenterCMHistory(): JSX.Element { { header: "Your outcome", className: () => "your-outcome", - render: (X) => `${X.users_vote_category}`, + render: (X) => `${X.users_vote_category ?? ""}`, }, ]} />