From 68f8a68d66f890e84ade18796f082f49b26707dd Mon Sep 17 00:00:00 2001 From: artemkolodko Date: Wed, 19 Oct 2022 19:32:59 +0100 Subject: [PATCH] Fixed update date for top charts tip --- src/pages/TopStatsPage/Transaction.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/pages/TopStatsPage/Transaction.tsx b/src/pages/TopStatsPage/Transaction.tsx index 8c94275..c880070 100644 --- a/src/pages/TopStatsPage/Transaction.tsx +++ b/src/pages/TopStatsPage/Transaction.tsx @@ -73,7 +73,8 @@ export const TransactionTopStats = () => { }, [period]) const dateFrom = oneSenders.length > 0 ? dayjs(oneSenders[0].updatedAt).subtract(period, 'day') : '' - const dateTo = oneSenders.length > 0 ? dayjs(oneSenders[0].updatedAt).subtract(1, 'day'): '' + const dateTo = oneSenders.length > 0 ? dayjs(oneSenders[0].updatedAt).subtract(1, 'day') : '' + const dateUpdate = oneSenders.length > 0 ? dayjs(oneSenders[0].updatedAt) : '' return @@ -87,11 +88,11 @@ export const TransactionTopStats = () => { {isLoading && } - {!isLoading && dateFrom && dateTo && + {!isLoading && dateFrom && dateTo && dateUpdate && } + content={} > {period === MetricsTopPeriod.d1 &&