From 578107a6581e9e039a7e6bda97ba855fd2054d15 Mon Sep 17 00:00:00 2001 From: shmck Date: Sun, 15 Mar 2020 16:27:00 -0700 Subject: [PATCH 1/2] fix task count --- web-app/src/containers/Tutorial/LevelPage/Level.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 ( From e3124dc8cb24f7b21a5bcd69604f4aa623c19c0b Mon Sep 17 00:00:00 2001 From: shmck Date: Sun, 15 Mar 2020 16:27:12 -0700 Subject: [PATCH 2/2] new activeBackground in vscode --- .vscode/settings.json | 1 + 1 file changed, 1 insertion(+) 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",