Skip to content
This repository was archived by the owner on Feb 27, 2023. It is now read-only.

Commit e2fea21

Browse files
authored
fix: tutorial not starting in org (#851)
1 parent 3093806 commit e2fea21

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/entryPoints/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,10 @@ async function loadWebsiteSystems(options: KernelOptions['kernelOptions']) {
256256
// this code should be removed once the "hardcoded" tutorial is removed
257257
// from the renderer
258258
if (NEEDS_TUTORIAL) {
259-
if (getFeatureFlagVariantName(store.getState(), 'new_tutorial_variant') === 'disabled') {
259+
const NEW_TUTORIAL_FEATURE_FLAG = getFeatureFlagVariantName(store.getState(), 'new_tutorial_variant')
260+
const IS_NEW_TUTORIAL_DISABLED =
261+
NEW_TUTORIAL_FEATURE_FLAG === 'disabled' || NEW_TUTORIAL_FEATURE_FLAG === 'undefined'
262+
if (IS_NEW_TUTORIAL_DISABLED) {
260263
const enableNewTutorialCamera = worldConfig ? worldConfig.enableNewTutorialCamera ?? false : false
261264
const tutorialConfig = {
262265
//TODO: hardcoding this value to true since currently default scene is the xmas scnee.

0 commit comments

Comments
 (0)