mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 18:12:00 +00:00
only set motd if value returned
This commit is contained in:
@@ -35,7 +35,7 @@ export function MotdDisplay() {
|
|||||||
|
|
||||||
async function fetchMotd() {
|
async function fetchMotd() {
|
||||||
const motd = await getMotd();
|
const motd = await getMotd();
|
||||||
setMotd(motd);
|
motd && setMotd(motd);
|
||||||
}
|
}
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user