From ffbe27929f3172df21141cc3c4bf4702a92f18c9 Mon Sep 17 00:00:00 2001 From: Rahul Biswakarma Date: Thu, 25 May 2023 19:29:04 +0530 Subject: [PATCH] test --- pages/recursion/tower-of-hanoi.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pages/recursion/tower-of-hanoi.js b/pages/recursion/tower-of-hanoi.js index 0a5109e..2dfa6db 100644 --- a/pages/recursion/tower-of-hanoi.js +++ b/pages/recursion/tower-of-hanoi.js @@ -23,7 +23,7 @@ export default function TowerOfHanoi() { useEffect(() => { dispatch(setIsRunning(false)); var rawAlgoId = "tower-of-hanoi"; - var algoName = ToProperCase(rawAlgoId); + generateDiscs(); if (algoName != undefined) { @@ -33,6 +33,7 @@ export default function TowerOfHanoi() { dispatch(setAlgoCategory("recursion")); }); } + var algoName = ToProperCase(rawAlgoId); }); return (