Skip to content

Commit

Permalink
fixed bug where only same algorithm was used verytime
Browse files Browse the repository at this point in the history
  • Loading branch information
JarUml committed Dec 14, 2023
1 parent c4d8336 commit 9d94432
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Frontend/algoverse/src/components/SearchBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ const pages = [
{ name: "BFS", path: "/pathfinding?algorithm=BFS" },
{ name: "DFS", path: "/pathfinding?algorithm=DFS" },
{ name: "A*", path: "/pathfinding?algorithm=AStar" },
{ name: "MergeSort", path: "/sorting?algorithm=MergeSort" },
{ name: "SelectionSort", path: "/sorting?algorithm=SelectionSort" },
{ name: "BubbleSort", path: "/sorting?algorithm=BubbleSort" },
{ name: "InsertionSort", path: "/sorting?algorithm=InsertionSort" },
{ name: "QuickSort", path: "/sorting?algorithm=QuickSort" },
{ name: "Binary Search Tree", path: "/Tree?algorithm=BinaryTree" },
// other pages
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ function Visuals() {
useEffect(() => {
// This will run only once when the component mounts
changeValues();
changeValues();
}, []);

useEffect(() => {
Expand Down

0 comments on commit 9d94432

Please sign in to comment.