fix(dynozavry): pick up zone-tagged Динопарк tariff from EZY API
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:
parent
12dfe6dacb
commit
2fc3722ba7
1 changed files with 5 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue