only set motd if value returned

This commit is contained in:
Beebles
2024-08-08 17:13:41 -06:00
parent 6f8c414859
commit 29cfe6c66e
+1 -1
View File
@@ -35,7 +35,7 @@ export function MotdDisplay() {
async function fetchMotd() {
const motd = await getMotd();
setMotd(motd);
motd && setMotd(motd);
}
useEffect(() => {