Skip to content

Commit 02b2c61

Browse files
committed
fix(academy): reset hintIndex when exercise changes
1 parent 288f300 commit 02b2c61

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/sim/app/academy/components/sandbox-canvas-provider.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ export function SandboxCanvasProvider({
197197

198198
useEffect(() => {
199199
completedRef.current = false
200+
setHintIndex(-1)
200201

201202
const workflowState = buildWorkflowState(
202203
exerciseConfig.initialBlocks ?? [],

0 commit comments

Comments
 (0)