summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBeebles <102569435+beebls@users.noreply.github.com>2024-08-08 17:13:41 -0600
committerBeebles <102569435+beebls@users.noreply.github.com>2025-08-01 06:45:40 -0600
commitccdfd53648a14a22e0fa661b694c1db8d9197dda (patch)
tree4b6f3cfda0703d5866006547f8436139a126ce6e
parent267b11c9bfcdb9d777da4099997203f4bebb1764 (diff)
downloaddecky-loader-ccdfd53648a14a22e0fa661b694c1db8d9197dda.tar.gz
decky-loader-ccdfd53648a14a22e0fa661b694c1db8d9197dda.zip
only set motd if value returned
-rw-r--r--frontend/src/components/MotdDisplay.tsx2
1 files changed, 1 insertions, 1 deletions
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(() => {