From d057dc96ecdfe42274062fc6194c817355d6b90c Mon Sep 17 00:00:00 2001 From: Cyberarm Date: Mon, 4 Apr 2022 08:02:56 -0500 Subject: [PATCH] Fixed crash when fetching user avatar on login --- lib/pages/login.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pages/login.rb b/lib/pages/login.rb index 571a93c..c1bd7b5 100644 --- a/lib/pages/login.rb +++ b/lib/pages/login.rb @@ -32,7 +32,7 @@ class W3DHub @password.enabled = false btn.enabled = false - # Todo lock whole UI until response or timeout + # TODO: lock whole UI until response or timeout # Do network stuff @@ -46,7 +46,7 @@ class W3DHub Store.settings[:account][:data] = account Store.settings.save_settings - Cache.fetch(account.avatar_uri, force_fetch: true, async: false) if account + Cache.fetch(uri: account.avatar_uri, force_fetch: true, async: false) if account applications = Api.applications if account end