Added payment types

This commit is contained in:
Rahaf
2026-07-04 01:49:04 +03:00
parent c7698741c7
commit 3b66bb53f1
3 changed files with 89 additions and 79 deletions

View File

@ -187,7 +187,7 @@ function mapApiDetail(item) {
const rawImages = Array.isArray(info.images) ? info.images : [];
const photosFallback = Array.isArray(details.photos) ? details.photos : [];
const allRaw = rawImages.length > 0 ? rawImages : photosFallback;
const images = allRaw.length > 0 ? allRaw.map(buildImageUrl) : [];
const images = allRaw.length > 0 ? allRaw.map(buildImageUrl).filter(Boolean) : [];
// Normalize services: Flutter sends list of strings or object with boolean values
const rawServices = details.services || {};