From 844cf51d0418e6e3e1519e045bd6898cabce9714 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Mon, 1 Nov 2021 11:18:09 +0100 Subject: [PATCH] Added missing prettify on number of visits to export and selected visits --- src/visits/VisitsStats.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/visits/VisitsStats.tsx b/src/visits/VisitsStats.tsx index ca255348..4f4e3706 100644 --- a/src/visits/VisitsStats.tsx +++ b/src/visits/VisitsStats.tsx @@ -15,6 +15,7 @@ import { ShlinkApiError } from '../api/ShlinkApiError'; import { Settings } from '../settings/reducers/settings'; import { SelectedServer } from '../servers/data'; import { supportsBotVisits } from '../utils/helpers/features'; +import { prettify } from '../utils/helpers/numbers'; import LineChartCard from './charts/LineChartCard'; import VisitsTable from './VisitsTable'; import { NormalizedOrphanVisit, NormalizedVisit, VisitsFilter, VisitsInfo, VisitsParams } from './types'; @@ -295,7 +296,7 @@ const VisitsStats: FC = ({ className="btn-md-block mr-2" onClick={() => setSelectedVisits([])} > - Clear selection {highlightedVisits.length > 0 && <>({highlightedVisits.length})} + Clear selection {highlightedVisits.length > 0 && <>({prettify(highlightedVisits.length)})}