2ba4c152e84f558814d0618b88d9fe68e8bcd7c5
Angular's flight-details-meal.component.html renders each Эконом / Комфорт / Бизнес sub-icon under *ngIf=hasEconomyMeal etc — flights with no meal data show just the cutlery icon and caption with no class pills. React was hardcoding all three regardless of data, so SU 6188 (whose API returns meal=[]) showed three meaningless icons; SU 6341 (meal=[Comfort, Economy, Business]) showed the right ones by accident. Read leg.equipment.meal, build a Set<MealType>, render each pill only when its type is in the set. Add a unit test covering empty, partial, and full meal data and an e2e regression on the live MOW→LED→MMK itinerary (test asserts SU 6188 has none, SU 6341 has all three). The e2e depends on backend data and can flake when the dev proxy WAF cookie has expired.
Description
No description provided
Languages
TypeScript
62.7%
HTML
23.6%
SCSS
11%
JavaScript
1.1%
C#
0.9%
Other
0.6%