explorer - fix chainoverview update animation
This commit is contained in:
parent
6d3c94c856
commit
6e32dbe403
|
@ -30,8 +30,8 @@ const ChainOverviewCard: React.FC<ChainOverviewCardProps> = ({
|
||||||
|
|
||||||
let timeout: NodeJS.Timeout;
|
let timeout: NodeJS.Timeout;
|
||||||
if (
|
if (
|
||||||
totals?.LastDayCount[dataKey] &&
|
totals?.TotalCount[dataKey] &&
|
||||||
totalCount !== totals?.LastDayCount[dataKey]
|
totalCount !== totals?.TotalCount[dataKey]
|
||||||
) {
|
) {
|
||||||
setAnimate(true);
|
setAnimate(true);
|
||||||
timeout = setTimeout(() => {
|
timeout = setTimeout(() => {
|
||||||
|
@ -45,7 +45,6 @@ const ChainOverviewCard: React.FC<ChainOverviewCardProps> = ({
|
||||||
};
|
};
|
||||||
}, [
|
}, [
|
||||||
totals?.TotalCount[dataKey],
|
totals?.TotalCount[dataKey],
|
||||||
totals?.LastDayCount[dataKey],
|
|
||||||
dataKey,
|
dataKey,
|
||||||
totalCount,
|
totalCount,
|
||||||
]);
|
]);
|
||||||
|
|
Loading…
Reference in New Issue