From 403e6cbea881c2c4bfceaac23814b29702fe9b87 Mon Sep 17 00:00:00 2001 From: Viet Anh Nguyen Date: Tue, 6 Feb 2024 11:00:26 +0700 Subject: [PATCH] Correct avg. acc --- .../components/report-detail/report-table.tsx | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/cope2n-fe/src/components/report-detail/report-table.tsx b/cope2n-fe/src/components/report-detail/report-table.tsx index 1b51e11..ae88e73 100644 --- a/cope2n-fe/src/components/report-detail/report-table.tsx +++ b/cope2n-fe/src/components/report-detail/report-table.tsx @@ -131,33 +131,33 @@ const ReportTable: React.FC = () => { }, }, { - title: 'Avg Accuracy', - dataIndex: 'Avg Accuracy', - key: 'Avg Accuracy', + title: 'Avg. Accuracy', + dataIndex: 'Avg. Accuracy', + key: 'Avg. Accuracy', render: (_, record) => { - const isAbnormal = record['Avg Accuracy'] * 100 < 98; + const isAbnormal = record['Avg. Accuracy'] * 100 < 98; return ( - {record['Avg Accuracy'] && - (Number(record['Avg Accuracy']) * 100)?.toFixed(2)} - - ); - }, - }, - { - title: 'Avg Client Request Time', - dataIndex: 'Avg. Client Request Time', - key: 'Avg. Client Request Time', - render: (_, record) => { - const isAbnormal = record['Avg Client Request Time'] > 2; - return ( - - {record['Avg Client Request Time'] && - Number(record['Avg Client Request Time'])?.toFixed(2)} + {record['Avg. Accuracy'] && + (Number(record['Avg. Accuracy']) * 100)?.toFixed(2)} ); }, }, + // { + // title: 'Avg Client Request Time', + // dataIndex: 'Avg. Client Request Time', + // key: 'Avg. Client Request Time', + // render: (_, record) => { + // const isAbnormal = record['Avg Client Request Time'] > 2; + // return ( + // + // {record['Avg Client Request Time'] && + // Number(record['Avg Client Request Time'])?.toFixed(2)} + // + // ); + // }, + // }, { title: 'Avg. OCR Processing Time', dataIndex: 'Avg. OCR Processing Time',