From 391bb16d7d46aa73734893856dcf1ff6eebac5c4 Mon Sep 17 00:00:00 2001 From: breadddevv Date: Wed, 8 Jul 2026 11:09:09 +0100 Subject: [PATCH 1/2] Fixed quota number on profile --- components/profile/quotas.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/profile/quotas.tsx b/components/profile/quotas.tsx index 75b41a40..f7b31b42 100644 --- a/components/profile/quotas.tsx +++ b/components/profile/quotas.tsx @@ -5,7 +5,6 @@ import { ProfileSection, } from "@/components/profile/shell"; import { IconChartBar, IconUsers, IconBriefcase, IconUser } from "@tabler/icons-react"; -import Tooltip from "@/components/tooltip"; type QuotaWithLinkage = Quota & { currentValue?: number; @@ -111,7 +110,7 @@ export function QuotasProgress({ const pct = getQuotaPercentage(quota) || 0; const isComplete = pct >= 100; const barWidth = Math.min(pct, 100); - const currentVal = quota.currentValue !== undefined ? quota.currentValue : 0; + const currentVal = Math.round(barWidth / 100 * (quota.value != null ? quota.value : 0)); // eh, rudimentary workaround but works and thats all that matters return (
From d935e0ff7c5d0220c6f57ead988f942eac4886b6 Mon Sep 17 00:00:00 2001 From: bread Date: Wed, 8 Jul 2026 11:18:43 +0100 Subject: [PATCH 2/2] Update components/profile/quotas.tsx Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- components/profile/quotas.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/profile/quotas.tsx b/components/profile/quotas.tsx index f7b31b42..0ec52d9b 100644 --- a/components/profile/quotas.tsx +++ b/components/profile/quotas.tsx @@ -110,7 +110,9 @@ export function QuotasProgress({ const pct = getQuotaPercentage(quota) || 0; const isComplete = pct >= 100; const barWidth = Math.min(pct, 100); - const currentVal = Math.round(barWidth / 100 * (quota.value != null ? quota.value : 0)); // eh, rudimentary workaround but works and thats all that matters + const currentVal = quota.currentValue != null + ? quota.currentValue + : Math.round((pct / 100) * (quota.value ?? 0)); return (