diff --git a/advertisements/BannerAdvertisement.tsx b/advertisements/BannerAdvertisement.tsx index a39d0cf..ea245b5 100644 --- a/advertisements/BannerAdvertisement.tsx +++ b/advertisements/BannerAdvertisement.tsx @@ -6,6 +6,8 @@ import styles from "../styles/Advertisement.module.css"; const BannerAdvertisement = (props: { index: number; show_ad: boolean }) => { let index = props.index % banner_advertisements.length; + if (!banner_advertisements[index]) return null; + return (