Disallow whitespace as a platform name input (https://github.com/woocommerce/woocommerce-admin/pull/8090)
* Disallow whitespace as the platform name input * Add changelogs
This commit is contained in:
parent
cb8eff85f5
commit
755f99d5a1
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: Fix
|
||||||
|
|
||||||
|
Disallow whitespace as the platform name input. #8090
|
|
@ -226,9 +226,8 @@ class BusinessDetails extends Component {
|
||||||
'woocommerce-admin'
|
'woocommerce-admin'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
! values.other_platform_name &&
|
! values.other_platform_name.trim().length &&
|
||||||
values.other_platform === 'other' &&
|
values.other_platform === 'other' &&
|
||||||
[ 'other', 'brick-mortar-other' ].includes( values.selling_venues )
|
[ 'other', 'brick-mortar-other' ].includes( values.selling_venues )
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Reference in New Issue