not showing motd if its empty

This commit is contained in:
mrfry
2021-04-21 15:51:18 +02:00
parent 42edd56d00
commit d7fa02435f

View File

@@ -286,6 +286,7 @@ export default function Index({ globalData }) {
} }
const renderMotd = () => { const renderMotd = () => {
if (motd) {
return ( return (
<div className={styles.motd_body}> <div className={styles.motd_body}>
<div className={styles.title}>MOTD</div> <div className={styles.title}>MOTD</div>
@@ -299,6 +300,9 @@ export default function Index({ globalData }) {
)} )}
</div> </div>
) )
} else {
return null
}
} }
return ( return (