* Disallow whitespace as the platform name input

* Add changelogs
This commit is contained in:
Chi-Hsuan Huang 2021-12-30 10:05:12 +08:00 committed by GitHub
parent cb8eff85f5
commit 755f99d5a1
2 changed files with 5 additions and 2 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: Fix
Disallow whitespace as the platform name input. #8090

View File

@ -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 )
) {