diff options
| author | Beebles <102569435+beebls@users.noreply.github.com> | 2024-08-08 17:13:41 -0600 |
|---|---|---|
| committer | Beebles <102569435+beebls@users.noreply.github.com> | 2024-09-13 17:22:14 -0600 |
| commit | 29cfe6c66e74d40644ce74f44df02a79f6d308c8 (patch) | |
| tree | 75ace209f580690d264864ceea08e1c969fe2994 | |
| parent | 6f8c41485915b63cd02984d75a48d59d165328b3 (diff) | |
| download | decky-loader-29cfe6c66e74d40644ce74f44df02a79f6d308c8.tar.gz decky-loader-29cfe6c66e74d40644ce74f44df02a79f6d308c8.zip | |
only set motd if value returned
| -rw-r--r-- | frontend/src/components/MotdDisplay.tsx | 2 |
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(() => { |
