Skip to content

Commit

Permalink
Remove english gateway (#96502)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielcaires authored Dec 12, 2024
1 parent 909d875 commit 4774012
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import config from '@automattic/calypso-config';
import { PLAN_MIGRATION_TRIAL_MONTHLY } from '@automattic/calypso-products';
import { Onboard, type SiteSelect, type UserSelect } from '@automattic/data-stores';
import { useIsEnglishLocale } from '@automattic/i18n-utils';
import { isHostedSiteMigrationFlow } from '@automattic/onboarding';
import { SiteExcerptData } from '@automattic/sites';
import { useDispatch, useSelect } from '@wordpress/data';
Expand Down Expand Up @@ -109,7 +108,6 @@ const siteMigration: Flow = {
true
);
const isFromSiteWordPress = ! isLoadingFromData && urlData?.platform === 'wordpress';
const isEnglishLocale = useIsEnglishLocale();

const exitFlow = ( to: string ) => {
window.location.assign( to );
Expand Down Expand Up @@ -434,7 +432,7 @@ const siteMigration: Flow = {
);
}

if ( isEnglishLocale && action === 'already-wpcom' ) {
if ( action === 'already-wpcom' ) {
return navigate(
addQueryArgs(
{ siteId, from: from || fromQueryParam, siteSlug },
Expand All @@ -443,7 +441,7 @@ const siteMigration: Flow = {
);
}

if ( isEnglishLocale && action === 'site-is-not-using-wordpress' ) {
if ( action === 'site-is-not-using-wordpress' ) {
return navigate(
addQueryArgs(
{
Expand Down

0 comments on commit 4774012

Please sign in to comment.