mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
not showing motd if its empty
This commit is contained in:
@@ -286,6 +286,7 @@ export default function Index({ globalData }) {
|
||||
}
|
||||
|
||||
const renderMotd = () => {
|
||||
if (motd) {
|
||||
return (
|
||||
<div className={styles.motd_body}>
|
||||
<div className={styles.title}>MOTD</div>
|
||||
@@ -299,6 +300,9 @@ export default function Index({ globalData }) {
|
||||
)}
|
||||
</div>
|
||||
)
|
||||
} else {
|
||||
return null
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
|
Reference in New Issue
Block a user