From 456f2ff22c4e3b3792b2646f347221f435fea98f Mon Sep 17 00:00:00 2001 From: Beebles <102569435+beebls@users.noreply.github.com> Date: Thu, 8 Aug 2024 17:13:41 -0600 Subject: [PATCH] only set motd if value returned --- frontend/src/components/MotdDisplay.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/MotdDisplay.tsx b/frontend/src/components/MotdDisplay.tsx index 0ad45338..d5236d88 100644 --- a/frontend/src/components/MotdDisplay.tsx +++ b/frontend/src/components/MotdDisplay.tsx @@ -35,7 +35,7 @@ export function MotdDisplay() { async function fetchMotd() { const motd = await getMotd(); - setMotd(motd); + motd && setMotd(motd); } useEffect(() => {