diff --git a/plugins/woocommerce-admin/changelogs/fix-7907-disallow-white-space-platform-name-input b/plugins/woocommerce-admin/changelogs/fix-7907-disallow-white-space-platform-name-input new file mode 100644 index 00000000000..f2c8d10f9c1 --- /dev/null +++ b/plugins/woocommerce-admin/changelogs/fix-7907-disallow-white-space-platform-name-input @@ -0,0 +1,4 @@ +Significance: patch +Type: Fix + +Disallow whitespace as the platform name input. #8090 diff --git a/plugins/woocommerce-admin/client/profile-wizard/steps/business-details/flows/selective-bundle/index.js b/plugins/woocommerce-admin/client/profile-wizard/steps/business-details/flows/selective-bundle/index.js index ba9e48412af..a81b89d02e4 100644 --- a/plugins/woocommerce-admin/client/profile-wizard/steps/business-details/flows/selective-bundle/index.js +++ b/plugins/woocommerce-admin/client/profile-wizard/steps/business-details/flows/selective-bundle/index.js @@ -226,9 +226,8 @@ class BusinessDetails extends Component { 'woocommerce-admin' ); } - if ( - ! values.other_platform_name && + ! values.other_platform_name.trim().length && values.other_platform === 'other' && [ 'other', 'brick-mortar-other' ].includes( values.selling_venues ) ) {