From 09184f93dfc8742793069add6e873a6722178a2d Mon Sep 17 00:00:00 2001 From: yudejp Date: Sat, 19 Jun 2021 18:08:49 +0900 Subject: [PATCH] Why did you try to change constant value LOL --- pages/components/DiscordStatus.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/components/DiscordStatus.js b/pages/components/DiscordStatus.js index 5c660a0..203d4ed 100644 --- a/pages/components/DiscordStatus.js +++ b/pages/components/DiscordStatus.js @@ -13,7 +13,7 @@ const App = () => { fetchData(); }, []); const str = JSON.stringify(data) - const status = 0 + let status = 0 if (str.indexOf("status") !== -1){ status = data.members && data.members[0].status; }