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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user