Skip to content

Commit 2d80b6f

Browse files
committed
checking for the default value
1 parent 1d406d0 commit 2d80b6f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/OnboardingSPA/steps/TheFork/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ const TheFork = () => {
7373
// setting the experiment version to 2 so that DIY onboarding is always hidden
7474
const theForkExperimentVersion = 2;
7575
setExperimentVersion( theForkExperimentVersion );
76-
if ( ! currentData.sitegen.theForkExperimentVersion ) {
76+
77+
// the default value of theForkExperimentVersion while initialising the store is 0
78+
if ( currentData.sitegen.theForkExperimentVersion === 0 ) {
7779
// Sync that to the store and DB for same version on refresh
7880
currentData.sitegen.theForkExperimentVersion = theForkExperimentVersion;
7981
setCurrentOnboardingData( currentData );

0 commit comments

Comments
 (0)