fix
This commit is contained in:
@@ -17,7 +17,8 @@ const fetchAboutData = async () => {
|
|||||||
{ next: { revalidate: 10 } }, // 5 daqiqa
|
{ next: { revalidate: 10 } }, // 5 daqiqa
|
||||||
);
|
);
|
||||||
if (!res.ok) throw new Error(`Failed to fetch about data: ${res.status}`);
|
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 {
|
interface Props {
|
||||||
|
|||||||
Reference in New Issue
Block a user