diff --git a/app/components/home/FAQSection.tsx b/app/components/home/FAQSection.tsx index dc28c12..dc47ac5 100644 --- a/app/components/home/FAQSection.tsx +++ b/app/components/home/FAQSection.tsx @@ -46,11 +46,11 @@ const FAQSection = ({ data }: FAQSectionProps) => {
- {data.description} -
-+ {slide.description} +
+
+ {slides.map((slide, index) => (
+
-
+
+
@@ -49,7 +71,7 @@ const WhyChooseUs = ({ data }: WhyChooseUsProps) => {
diff --git a/app/components/layout/Footer/FooterBottom.tsx b/app/components/layout/Footer/FooterBottom.tsx index 9dcd7a1..7bcd406 100644 --- a/app/components/layout/Footer/FooterBottom.tsx +++ b/app/components/layout/Footer/FooterBottom.tsx @@ -22,7 +22,13 @@ const FooterBottom = () => { loadFooterData(); }, []); - const { bottom } = data; + // Ensure we always have a valid `bottom` object, even if API shape changes + const bottom = data?.bottom || footerData.bottom; + + // If bottom is still missing, avoid rendering to prevent runtime errors + if (!bottom) { + return null; + } return (