fix
This commit is contained in:
parent
5e711bc4e9
commit
83f0485fb7
@ -281,7 +281,7 @@ function loadAndClick() {
|
|||||||
select.parentNode.classList.remove('error');
|
select.parentNode.classList.remove('error');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (selectedPosts.length === max_paintings) {
|
if (selectedPosts.length > max_paintings) {
|
||||||
showToast({message: `Максимальное кол-во картин: ${max_paintings}`, status: 'error'});
|
showToast({message: `Максимальное кол-во картин: ${max_paintings}`, status: 'error'});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user