diff --git a/packages/stage-pages/src/pages/settings/flux.vue b/packages/stage-pages/src/pages/settings/flux.vue index 5c225b6f0..09063bcc8 100644 --- a/packages/stage-pages/src/pages/settings/flux.vue +++ b/packages/stage-pages/src/pages/settings/flux.vue @@ -18,6 +18,7 @@ interface FluxPackage { label: string defaultCurrency: string currencies: Record + recommended?: boolean } const loadingPriceId = ref(null) @@ -71,7 +72,7 @@ const AUDIT_PAGE_SIZE = 20 const capacity = ref(0) const fluxPercentage = computed(() => { - if (capacity.value === 0) + if (capacity.value <= 0) return credits.value > 0 ? 100 : 0 return Math.min(100, Math.round((credits.value / capacity.value) * 100)) }) @@ -254,27 +255,29 @@ async function handleBuy(stripePriceId: string) { -
+
-
-
-

- {{ formatNumber(credits) }} -

-

- {{ t('settings.pages.flux.description') }} -

+
+
+
+

+ {{ formatNumber(credits) }} +

+

+ {{ t('settings.pages.flux.description') }} +

+
-
+