diff --git a/apps/dashboard/src/@/actions/stripe-actions.ts b/apps/dashboard/src/@/actions/stripe-actions.ts index bb2aeb7b374..4d9c3aeae6d 100644 --- a/apps/dashboard/src/@/actions/stripe-actions.ts +++ b/apps/dashboard/src/@/actions/stripe-actions.ts @@ -69,6 +69,6 @@ export async function getStripeBalance(customerId: string) { if (customer.deleted) { return 0; } - // Stripe returns a positive balance for credits, so we need to multiply by -1 to get the actual balance (as long as the balance is not 0) - return customer.balance === 0 ? 0 : customer.balance * -1; + // Stripe returns a positive balance for credits, so we need to divide by -100 to get the actual balance (as long as the balance is not 0) + return customer.balance === 0 ? 0 : customer.balance / -100; }