fix(dynozavry): pick up zone-tagged Динопарк tariff from EZY API
Some checks are pending
CI / Type Check (push) Waiting to run
CI / Lint (push) Waiting to run
CI / Unit Tests (push) Waiting to run
Deploy / Build & Push Image (push) Waiting to run
Deploy / Deploy to VPS (push) Blocked by required conditions

Previously filtered only categoryTag==='dyno'; EZY returns 'zone'
for Динопарк. Mirrors the same pattern already used in DyvoLisTickets.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Vadym Samoilenko 2026-06-11 10:49:04 +01:00
parent 12dfe6dacb
commit 2fc3722ba7

View file

@ -722,7 +722,11 @@ export function DinoPageContent({
.then((r) => r.json())
.then((data: { tariffs?: Tariff[] }) => {
const all = data.tariffs ?? []
const dyno = all.filter((t) => t.categoryTag === 'dyno')
const dyno = all.filter(
(t) =>
t.categoryTag === 'dyno' ||
(t.categoryTag === 'zone' && t.name.toLowerCase().includes('дино'))
)
const combo = all.filter((t) => t.categoryTag === 'combo')
if (dyno.length > 0) setDynoTariffs(dyno)
if (combo.length > 0) setComboTariffs(combo)