forked from UKSOURCE/hailearning.edu.vn
feat: Refactor home page components
This commit is contained in:
@@ -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 (
|
||||
<div className="footer-bottom">
|
||||
|
||||
Reference in New Issue
Block a user