From d92ab5e5e4e51056806f715c4cc69aa6d1559a68 Mon Sep 17 00:00:00 2001 From: End Nightshade Date: Wed, 4 Mar 2026 20:15:49 -0700 Subject: [PATCH] woag copilot actually did smth good --- app/components/sidebar.rb | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/app/components/sidebar.rb b/app/components/sidebar.rb index 765066a..59dd5c5 100644 --- a/app/components/sidebar.rb +++ b/app/components/sidebar.rb @@ -39,17 +39,15 @@ class Components::Sidebar < Components::Base if current_identity.present? status = current_identity.verification_status - # Show a small badge when the user needs to take a verification action. - # We use a numeric badge so the rendering helper can decide whether to display it. - badge_count = 0 - badge_count = 1 if status == "needs_submission" || status == "pending" - items << { - label: t("sidebar.verification"), - path: new_verifications_path, - icon: status == "pending" ? "clock" : "card-id", - badge: badge_count - } + if status == "needs_submission" || status == "pending" + items << { + label: t("sidebar.verification"), + path: new_verifications_path, + icon: status == "pending" ? "clock" : "card-id", + badge: 1 + } + end end items << { label: t("sidebar.addresses"), path: addresses_path, icon: "email" }