Skip to content

The open alternative to Salesforce, designed for AI.

Billing - fix credit usage bar readibility (#15037)

Etienne88d8f8e671be
diff --git a/packages/twenty-front/src/modules/billing/components/SettingsBillingCreditsSection.tsx b/packages/twenty-front/src/modules/billing/components/SettingsBillingCreditsSection.tsx
index dc4b0c413af..23a8600e166 100644
--- a/packages/twenty-front/src/modules/billing/components/SettingsBillingCreditsSection.tsx
+++ b/packages/twenty-front/src/modules/billing/components/SettingsBillingCreditsSection.tsx
@@ -47,6 +47,7 @@ export const SettingsBillingCreditsSection = ({
getWorkflowNodeExecutionUsage();
const progressBarValue = (usedCredits / grantedCredits) * 100;
+ const displayedProgressBarValue = progressBarValue < 3 ? 3 : progressBarValue;
const intervalLabel = getIntervalLabel(isMonthlyPlan);
@@ -73,7 +74,7 @@ export const SettingsBillingCreditsSection = ({
value={`${formatNumber(usedCredits)}/${formatNumber(grantedCredits, { abbreviate: true, decimals: 2 })}`}
/>
<ProgressBar
- value={progressBarValue}
+ value={displayedProgressBarValue}
barColor={progressBarValue > 100 ? COLOR.red40 : COLOR.blue}
backgroundColor={BACKGROUND_LIGHT.tertiary}
withBorderRadius={true}