From 42c5a3e6658f22662b1c58f54cba31dc90bfbc61 Mon Sep 17 00:00:00 2001 From: Benoit Date: Mon, 5 Dec 2022 22:34:34 +0100 Subject: [PATCH] Translation system is still fucked up --- src/widgets/omada/proxy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/omada/proxy.js b/src/widgets/omada/proxy.js index ad3defdc..544502c5 100644 --- a/src/widgets/omada/proxy.js +++ b/src/widgets/omada/proxy.js @@ -27,7 +27,7 @@ async function login(loginUrl, username, password) { ); const status = authResponse[0]; const data = JSON.parse(authResponse[2]); - const token = data.result.token; + const {token} = data.result; try { if (status === 200) { cache.put(tokenCacheKey, token); // expiration -5 minutes