Skip to content

Commit

Permalink
fix #514/1
Browse files Browse the repository at this point in the history
  • Loading branch information
b1acksun committed Nov 7, 2017
1 parent bce2bac commit 46ca736
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/cards/CategorySelector.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export function validateCategory(category, required = true) {
const cats = category.trim().split(' ')
return (
// !category || category.trim() === '' ? 'Required' :
cats.length > 5 ? tt('use_limitied_amount_of_categories', {amount: 5}) :
cats.length > 5 ? tt('category_selector_jsx.use_limitied_amount_of_categories', {amount: 5}) :
cats.find(c => c.length > 24) ? tt('category_selector_jsx.maximum_tag_length_is_24_characters') :
cats.find(c => c.split('-').length > 2) ? tt('category_selector_jsx.use_one_dash') :
cats.find(c => c.indexOf(',') >= 0) ? tt('category_selector_jsx.use_spaces_to_separate_tags') :
Expand Down

0 comments on commit 46ca736

Please sign in to comment.