From cf1844d6a4e144092f40896e2e66bd79b100b947 Mon Sep 17 00:00:00 2001 From: TLSM Date: Sat, 8 Oct 2022 23:55:40 -0400 Subject: [PATCH] Fix hat counter logic breaking Simps listing. --- files/templates/userpage.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/templates/userpage.html b/files/templates/userpage.html index 0cf8c89e1..7023e9fd1 100644 --- a/files/templates/userpage.html +++ b/files/templates/userpage.html @@ -30,8 +30,8 @@ {% endblock %} {% import 'userpage_admintools.html' as userpage_admintools with context %} -{% set hats_total = u.hats_owned_proportion_display[1] %} -{% set hats_owned_percent = u.hats_owned_proportion_display[0] %} +{% set hats_total = u.hats_owned_proportion_display[1] if u else 0 %} +{% set hats_owned_percent = u.hats_owned_proportion_display[0] if u else '' %} {% block desktopUserBanner %}