Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Site Migration: Default to hiding the migration trial from unverified users #90589

Merged
merged 1 commit into from
May 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const SiteMigrationUpgradePlan: Step = function ( { navigation, data } ) {
const translate = useTranslate();
const queryParams = useQuery();
const hideFreeMigrationTrialForNonVerifiedEmail =
( data?.hideFreeMigrationTrialForNonVerifiedEmail as boolean | undefined ) ?? false;
( data?.hideFreeMigrationTrialForNonVerifiedEmail as boolean | undefined ) ?? true;

const selectedPlanData = useSelectedPlanUpgradeQuery();
const selectedPlanPathSlug = selectedPlanData.data;
Expand Down
6 changes: 1 addition & 5 deletions client/landing/stepper/declarative-flow/migration-signup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,7 @@ const migrationSignup: Flow = {
}

return navigate(
addQueryArgs(
{ from: from, siteSlug, siteId },
STEPS.SITE_MIGRATION_UPGRADE_PLAN.slug
),
{ hideFreeMigrationTrialForNonVerifiedEmail: true }
addQueryArgs( { from: from, siteSlug, siteId }, STEPS.SITE_MIGRATION_UPGRADE_PLAN.slug )
);
}

Expand Down