diff --git a/modules/reviews/index.js b/modules/reviews/index.js index 0e95cbb..8c767b7 100644 --- a/modules/reviews/index.js +++ b/modules/reviews/index.js @@ -49,7 +49,7 @@ function createReview(req, res) { const { author_name, country_code, country_name, city, stars, text, review_code } = req.body; const ip = req.ip || req.connection.remoteAddress || 'unknown'; - if (!author_name || !country_code || stars === undefined || !text || !review_code) { + if (!author_name || stars === undefined || !text || !review_code) { return res.status(400).json({ error: 'Missing required fields' }); } diff --git a/modules/translations/index.js b/modules/translations/index.js index 7f3adf5..7aca60d 100644 --- a/modules/translations/index.js +++ b/modules/translations/index.js @@ -28,6 +28,8 @@ const translations = { // Review Form 'form.select_country': 'Выберите страну', 'form.select_city': 'Город (необязательно)', + 'form.another_country': 'Другая страна', + 'form.country_placeholder': 'Введите название страны', 'form.another_city': 'Другой город', 'form.city_placeholder': 'Введите название города', 'form.rating': 'Оценка', @@ -355,6 +357,8 @@ const translations = { // Review Form 'form.select_country': 'Select country', 'form.select_city': 'City (optional)', + 'form.another_country': 'Other country', + 'form.country_placeholder': 'Enter country name', 'form.another_city': 'Other city', 'form.city_placeholder': 'Enter city name', 'form.rating': 'Rating', @@ -682,6 +686,8 @@ const translations = { // Review Form 'form.select_country': 'Атәыла алхразы', 'form.select_city': 'Ақалақь (иахәҭахым)', + 'form.another_country': 'Атәыла даҽаны', + 'form.country_placeholder': 'Атәыла ахьӡ аҭазыргыла', 'form.another_city': 'Ақалақь даҽаны', 'form.city_placeholder': 'Ақалақь ахьӡ аҭазыргыла', 'form.rating': 'Ахә', diff --git a/public/index.html b/public/index.html index ad675c7..700576f 100644 --- a/public/index.html +++ b/public/index.html @@ -941,6 +941,12 @@