From e2fea217f6d13bad6592923854e71b416f72136d Mon Sep 17 00:00:00 2001 From: Juan Ignacio Molteni Date: Thu, 19 Jan 2023 14:00:11 -0300 Subject: [PATCH] fix: tutorial not starting in org (#851) --- packages/entryPoints/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/entryPoints/index.ts b/packages/entryPoints/index.ts index 05848aaea..062735964 100644 --- a/packages/entryPoints/index.ts +++ b/packages/entryPoints/index.ts @@ -256,7 +256,10 @@ async function loadWebsiteSystems(options: KernelOptions['kernelOptions']) { // this code should be removed once the "hardcoded" tutorial is removed // from the renderer if (NEEDS_TUTORIAL) { - if (getFeatureFlagVariantName(store.getState(), 'new_tutorial_variant') === 'disabled') { + const NEW_TUTORIAL_FEATURE_FLAG = getFeatureFlagVariantName(store.getState(), 'new_tutorial_variant') + const IS_NEW_TUTORIAL_DISABLED = + NEW_TUTORIAL_FEATURE_FLAG === 'disabled' || NEW_TUTORIAL_FEATURE_FLAG === 'undefined' + if (IS_NEW_TUTORIAL_DISABLED) { const enableNewTutorialCamera = worldConfig ? worldConfig.enableNewTutorialCamera ?? false : false const tutorialConfig = { //TODO: hardcoding this value to true since currently default scene is the xmas scnee.