We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c0b6b66 + 5443d56 commit 227d512Copy full SHA for 227d512
src/Features/tutorial.ts
@@ -12,7 +12,7 @@ export async function initTutorial(): Promise<void> {
12
const tutorialProperty = await map.properties?.find(
13
(property: ITiledMapProperty) => property.name === "tutorial",
14
);
15
- const isTutorialEnabled = tutorialProperty.value ?? false;
+ const isTutorialEnabled = tutorialProperty && tutorialProperty.value;
16
17
if (!tutorialDone && isTutorialEnabled) {
18
openTutorial(isForMobile);
0 commit comments