fix: playground back button goes to previous lesson

The Back button in playground now works the same as Previous button
on other pages - it navigates to the previous lesson.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
This commit is contained in:
2026-01-16 15:00:13 +01:00
parent 28d41344d1
commit a7dcb3ec6f
2 changed files with 20 additions and 11 deletions

View File

@@ -793,14 +793,6 @@ function nextLesson() {
function prevLesson() {
const engineState = lessonEngine.getCurrentState();
const isPlayground = engineState.lesson?.mode === "playground";
// In playground mode, "Back" navigates to home
if (isPlayground) {
navigateTo("#");
return;
}
const prevModuleId = engineState.module?.id;
const success = lessonEngine.previousLesson();
if (success) {