Skip to content

Commit

Permalink
Update AlgoScreen.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucian Tash committed Sep 5, 2024
1 parent da3d0b0 commit 13b65d9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/screens/AlgoScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ const AlgoScreen = ({ theme, toggleTheme }) => {
ReactGA.send({ hitType: 'pageview', page: algoName });

if (algoDetails) {
const [_menuDisplayName, AlgoClass, _hasPseudoCode, _verboseDisplayName] = algoDetails;
// eslint-disable-next-line no-unused-vars
const [menuDisplayName, AlgoClass, hasPseudoCode, verboseDisplayName] = algoDetails;

animManagRef.current = new AnimationManager(canvasRef, animBarRef);

Expand Down Expand Up @@ -85,7 +86,8 @@ const AlgoScreen = ({ theme, toggleTheme }) => {
return <AlgorithmNotFound404 />;
}

const [menuDisplayName, _AlgoClass, hasPseudoCode, verboseDisplayName] = algoDetails;
// eslint-disable-next-line no-unused-vars
const [menuDisplayName, AlgoClass, hasPseudoCode, verboseDisplayName] = algoDetails;
const isQuickselect = menuDisplayName === 'Quickselect / kᵗʰ Select';
const header = verboseDisplayName || menuDisplayName;

Expand Down

0 comments on commit 13b65d9

Please sign in to comment.