Enable chart animation

This commit is contained in:
dapplion 2019-08-11 19:57:28 +02:00
parent 1dfb8552f5
commit 7cd59a3404
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);