Merge pull request #1340 from mirumee/SALEOR-2907/3.0/prevent-white-space-only-channel-names (#1348)
Add condition for minimal channel name length
This commit is contained in:
parent
fac714e415
commit
9329277268
1 changed files with 5 additions and 1 deletions
|
@ -144,7 +144,11 @@ export const ChannelDetailsPage: React.FC<ChannelDetailsPageProps> = ({
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
const formDisabled = !data.name || !data.slug || !data.currencyCode;
|
const formDisabled =
|
||||||
|
!data.name ||
|
||||||
|
!data.slug ||
|
||||||
|
!data.currencyCode ||
|
||||||
|
!(data.name.trim().length > 0);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|
Loading…
Reference in a new issue