diff --git a/VERSION b/VERSION index 133cad2..49df80b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -6.4.3 +6.4.4 diff --git a/play-life-web/package.json b/play-life-web/package.json index 66e551e..a256893 100644 --- a/play-life-web/package.json +++ b/play-life-web/package.json @@ -1,6 +1,6 @@ { "name": "play-life-web", - "version": "6.4.3", + "version": "6.4.4", "type": "module", "scripts": { "dev": "vite", diff --git a/play-life-web/src/components/ShoppingList.jsx b/play-life-web/src/components/ShoppingList.jsx index d00e785..4ef9702 100644 --- a/play-life-web/src/components/ShoppingList.jsx +++ b/play-life-web/src/components/ShoppingList.jsx @@ -333,12 +333,14 @@ function ShoppingList({ onNavigate, refreshTrigger = 0, isActive = false, initia groups[groupKey] = { active: [], future: [] } } - if (item.next_show_at) { - const showAt = new Date(item.next_show_at) - if (showAt > todayEnd) { - groups[groupKey].future.push(item) - return - } + if (!item.next_show_at) { + groups[groupKey].future.push(item) + return + } + const showAt = new Date(item.next_show_at) + if (showAt > todayEnd) { + groups[groupKey].future.push(item) + return } groups[groupKey].active.push(item) }) @@ -709,9 +711,9 @@ function ShoppingList({ onNavigate, refreshTrigger = 0, isActive = false, initia nextShowAtStr = formatDateToLocal(nextShowAtDate) } - const isToday = nextShowAtStr === todayStr const isTomorrow = nextShowAtStr === tomorrowStr - const showTodayChip = !nextShowAtStr || nextShowAtStr > todayStr + // Показываем "Сегодня" только если дата строго в будущем (null, сегодня и прошлое — не показываем) + const showTodayChip = !!nextShowAtStr && nextShowAtStr > todayStr // Дата "по плану" const item = selectedItemForPostpone