summaryrefslogtreecommitdiff
path: root/frontend/src/components
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>2024-09-13 17:22:14 -0600
commit29cfe6c66e74d40644ce74f44df02a79f6d308c8 (patch)
tree75ace209f580690d264864ceea08e1c969fe2994 /frontend/src/components
parent6f8c41485915b63cd02984d75a48d59d165328b3 (diff)
downloaddecky-loader-29cfe6c66e74d40644ce74f44df02a79f6d308c8.tar.gz
decky-loader-29cfe6c66e74d40644ce74f44df02a79f6d308c8.zip
only set motd if value returned
Diffstat (limited to 'frontend/src/components')
-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(() => {