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 Aug 8, 2024
1 parent eb3d334 commit 456f2ff
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 456f2ff

Please sign in to comment.