diff --git a/templates/profile/competition/index.html b/templates/profile/competition/index.html index 8af016e..86d52aa 100644 --- a/templates/profile/competition/index.html +++ b/templates/profile/competition/index.html @@ -281,7 +281,7 @@ function loadAndClick() { select.parentNode.classList.remove('error'); } } - if (selectedPosts.length === max_paintings) { + if (selectedPosts.length > max_paintings) { showToast({message: `Максимальное кол-во картин: ${max_paintings}`, status: 'error'}); return; }