explorer - fix chainoverview update animation

This commit is contained in:
justinschuldt 2022-03-17 16:52:13 -05:00 committed by Justin Schuldt
parent 6d3c94c856
commit 6e32dbe403
1 changed files with 2 additions and 3 deletions

View File

@ -30,8 +30,8 @@ const ChainOverviewCard: React.FC<ChainOverviewCardProps> = ({
let timeout: NodeJS.Timeout;
if (
totals?.LastDayCount[dataKey] &&
totalCount !== totals?.LastDayCount[dataKey]
totals?.TotalCount[dataKey] &&
totalCount !== totals?.TotalCount[dataKey]
) {
setAnimate(true);
timeout = setTimeout(() => {
@ -45,7 +45,6 @@ const ChainOverviewCard: React.FC<ChainOverviewCardProps> = ({
};
}, [
totals?.TotalCount[dataKey],
totals?.LastDayCount[dataKey],
dataKey,
totalCount,
]);