about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-01-16 22:29:05 +0100
committerClaire <claire.github-309c@sitedethib.com>2022-01-16 22:29:05 +0100
commit278bd61d6f507e56350e7f14caaeaa954700ecd8 (patch)
treeaf0dde21359576102ab8dcf8a1dc3342f67bb71c
parent474cd302c91204fb05b2824ea17e3197e76032c7 (diff)
parent081e4426f8b4f5377afdd6e68e135a3aded93df1 (diff)
Merge branch 'main' into glitch-soc/merge-upstream
-rw-r--r--app/helpers/admin/dashboard_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/admin/dashboard_helper.rb b/app/helpers/admin/dashboard_helper.rb
index d4a30b97e..c21d41341 100644
--- a/app/helpers/admin/dashboard_helper.rb
+++ b/app/helpers/admin/dashboard_helper.rb
@@ -2,7 +2,7 @@
 
 module Admin::DashboardHelper
   def relevant_account_ip(account, ip_query)
-    ips = account.user.ips.to_a
+    ips = account.user.present? ? account.user.ips.to_a : []
 
     matched_ip = begin
       ip_query_addr = IPAddr.new(ip_query)