This commit is contained in:
Samandar Turgunboyev
2026-02-26 14:13:34 +05:00
parent db58ae240f
commit e2aa75031e

View File

@@ -17,7 +17,8 @@ const fetchAboutData = async () => {
{ next: { revalidate: 10 } }, // 5 daqiqa
);
if (!res.ok) throw new Error(`Failed to fetch about data: ${res.status}`);
return res.json();
const data = await res.json();
return data.banner;
};
interface Props {