From 7cd59a3404c845bfe74ca022ae6d97a3185928e3 Mon Sep 17 00:00:00 2001 From: dapplion Date: Sun, 11 Aug 2019 19:57:28 +0200 Subject: [PATCH] Enable chart animation --- src/PriceSimulationChart.tsx | 2 +- src/ResultParams.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PriceSimulationChart.tsx b/src/PriceSimulationChart.tsx index 034de87..cba4a2a 100644 --- a/src/PriceSimulationChart.tsx +++ b/src/PriceSimulationChart.tsx @@ -74,7 +74,7 @@ function PriceSimulationChart({ * Keep the animation active only during the initial animation time, * but afterwards, deactivate to prevent the re-size ugly effect */ - const [isAnimationActive, setIsAnimationActive] = useState(false); + const [isAnimationActive, setIsAnimationActive] = useState(true); useEffect(() => { const timeout = setTimeout(() => { setIsAnimationActive(false); diff --git a/src/ResultParams.tsx b/src/ResultParams.tsx index beefb19..0c8e425 100644 --- a/src/ResultParams.tsx +++ b/src/ResultParams.tsx @@ -63,7 +63,7 @@ export default function ResultParams({ * Keep the animation active only during the initial animation time, * but afterwards, deactivate to prevent the re-size ugly effect */ - const [isAnimationActive, setIsAnimationActive] = useState(false); + const [isAnimationActive, setIsAnimationActive] = useState(true); useEffect(() => { const timeout = setTimeout(() => { setIsAnimationActive(false);