Skip to content

Commit 1991883

Browse files
committed
fix: not rendering dirver.js if no tutorials to show
1 parent 8aafa0e commit 1991883

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

helpers/driverjsTutorials.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ export default async function showTutorials(
109109
cookiesToSet.push(x.cookieName)
110110
}
111111
})
112-
driver.defineSteps(finalTutorial)
113-
driver.start()
112+
if (finalTutorial.length) {
113+
driver.defineSteps(finalTutorial)
114+
driver.start()
115+
}
114116
}

0 commit comments

Comments
 (0)