Skip to content

Commit

Permalink
only set motd if value returned
Browse files Browse the repository at this point in the history
  • Loading branch information
beebls committed Sep 13, 2024
1 parent 6f8c414 commit 29cfe6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/MotdDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function MotdDisplay() {

async function fetchMotd() {
const motd = await getMotd();
setMotd(motd);
motd && setMotd(motd);
}

useEffect(() => {
Expand Down

0 comments on commit 29cfe6c

Please sign in to comment.