Skip to content

Commit

Permalink
Merge pull request #1340 from mirumee/SALEOR-2907/3.0/prevent-white-s…
Browse files Browse the repository at this point in the history
…pace-only-channel-names

add condition for minimal channel name length
  • Loading branch information
SektorDV authored Aug 30, 2021
2 parents 957da08 + c43326a commit b82b2de
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/channels/pages/ChannelDetailsPage/ChannelDetailsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<>
Expand Down

0 comments on commit b82b2de

Please sign in to comment.