diff --git a/src/view/addProduct/components/lable.js b/src/view/addProduct/components/lable.js index a9a316d..467a759 100644 --- a/src/view/addProduct/components/lable.js +++ b/src/view/addProduct/components/lable.js @@ -29,7 +29,7 @@ const LableInput = () => {
{ - if (e.key == 'Enter' && document.getElementById('colorInput').value) { + if (e.key == 'Enter' && document.getElementById('colorInput').value && document.getElementById('colorInput').value && tags.length < 3) { setTag({ title: e.target.value, color: document.getElementById('colorInput').value @@ -57,7 +57,7 @@ const LableInput = () => { -