From 84d72cb8424bb8087e0d38dcc22196d1b9f7112b Mon Sep 17 00:00:00 2001 From: bankjirapan Date: Tue, 21 Jan 2025 14:45:31 +0700 Subject: [PATCH] refactor: Format value requests_count on client table --- .../Settings/Clients/ClientsTable/ClientsTable.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/components/Settings/Clients/ClientsTable/ClientsTable.tsx b/client/src/components/Settings/Clients/ClientsTable/ClientsTable.tsx index 9dfe319d..55d3e72f 100644 --- a/client/src/components/Settings/Clients/ClientsTable/ClientsTable.tsx +++ b/client/src/components/Settings/Clients/ClientsTable/ClientsTable.tsx @@ -12,7 +12,7 @@ import ReactTable from 'react-table'; import { getAllBlockedServices, getBlockedServices } from '../../../../actions/services'; import { initSettings } from '../../../../actions'; -import { splitByNewLine, countClientsStatistics, sortIp, getService } from '../../../../helpers/helpers'; +import { splitByNewLine, countClientsStatistics, sortIp, getService, formatNumber } from '../../../../helpers/helpers'; import { MODAL_TYPE, LOCAL_TIMEZONE_VALUE, TABLES_MIN_ROWS } from '../../../../helpers/constants'; import Card from '../../../ui/Card'; @@ -300,12 +300,12 @@ const ClientsTable = ({ sortMethod: (a: any, b: any) => b - a, minWidth: 120, Cell: (row: any) => { - const content = CellWrap(row); + let content = CellWrap(row); if (!row.value) { return content; } - + content = typeof content === "number" ? formatNumber(content) : content; return {content}; }, },