feat: Update pop-up logic

This commit is contained in:
2025-10-02 04:45:43 +03:00
parent 7382a85082
commit a357994025
5 changed files with 11 additions and 6 deletions

View File

@@ -119,7 +119,8 @@ export const CreateInformationTab = observer(
const handleSave = async () => {
const isCityMissing = !sight.city_id;
const isNameMissing = !sight[language].name;
// Проверяем названия на всех языках
const isNameMissing = !sight.ru.name || !sight.en.name || !sight.zh.name;
if (isCityMissing || isNameMissing) {
setIsSaveWarningOpen(true);