From 279d8ca8600faad024e3522d7569e4bf6685fa45 Mon Sep 17 00:00:00 2001 From: cirroskais Date: Mon, 18 Mar 2024 16:28:43 -0400 Subject: [PATCH] forgot about svelteisms --- src/App.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/App.svelte b/src/App.svelte index 1720c0f..b0edecc 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -5,8 +5,8 @@ async function main() { const auth = await authorize().catch((e) => e); - if (!auth) return logs.push({ type: "Auth", content: `Failure | ${JSON.stringify(auth)}` }); - logs.push({ type: "Auth", content: JSON.stringify(auth) }); + if (!auth) return (logs = [...logs, { type: "Auth", content: `Failure | ${JSON.stringify(auth)}` }]); + logs = [...logs, { type: "Auth", content: JSON.stringify(auth) }]; const response = await discordSdk.commands.setActivity({ activity: { @@ -19,7 +19,7 @@ }, }); - logs.push({ type: "Activity", content: JSON.stringify(response) }); + logs = [...logs, { type: "Activity", content: JSON.stringify(response) }]; } main();