Fix Multiple Alerts

This commit is contained in:
SDCore 2026-07-14 23:43:12 -05:00
parent 217a21b092
commit 3287ea1711

View file

@ -115,13 +115,13 @@ export default function WeatherPage() {
Hyperlocal Weather
</span>
{weatherAlerts.length > 0 && (
<span className={styles.weatherAlerts}>
{weatherAlerts.map((alert, index) => (
{weatherAlerts.length > 0 &&
weatherAlerts.map((alert, index) => (
<span
key={index}
className={styles.weatherAlert}
className={styles.weatherAlerts}
>
<span className={styles.weatherAlert}>
{alert.title}
<span
className={
@ -134,9 +134,8 @@ export default function WeatherPage() {
).toLocaleString()}
</span>
</span>
))}
</span>
)}
))}
<span className={styles.weatherTop}>
<span className={styles.weatherTopLeft}>