diff --git a/.vscode/settings.json b/.vscode/settings.json index 12e6d9b1..5b2a0cb2 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -13,6 +13,7 @@ // styles "workbench.colorCustomizations": { "activityBar.background": "#1a1a1a", + "activityBar.activeBackground": "#1a1a1a", "activityBar.activeBorder": "#606020", "activityBar.foreground": "#e7e7e7", "activityBar.inactiveForeground": "#e7e7e799", diff --git a/web-app/src/containers/Tutorial/LevelPage/Level.tsx b/web-app/src/containers/Tutorial/LevelPage/Level.tsx index f113bf3d..a67f5b08 100644 --- a/web-app/src/containers/Tutorial/LevelPage/Level.tsx +++ b/web-app/src/containers/Tutorial/LevelPage/Level.tsx @@ -96,7 +96,10 @@ const Level = ({ level, onContinue, onLoadSolution, processes, testStatus }: Pro pageBottomRef.current.scrollIntoView({ behavior: 'smooth' }) } // @ts-ignore - const currentStep = level.steps.findIndex(s => s.status === 'ACTIVE') + let currentStep = level.steps.findIndex(s => s.status === 'ACTIVE') + if (currentStep === -1) { + currentStep = level.steps.length + } React.useEffect(scrollToBottom, [currentStep]) return (