Skip to content

Commit f02504b

Browse files
chore: generate
1 parent 40834fd commit f02504b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • packages/console/app/src/routes/zen/util

packages/console/app/src/routes/zen/util/handler.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,8 @@ export async function handler(
762762
const billing = authInfo.billing
763763
const billingUrl = `https://opencode.ai/workspace/${authInfo.workspaceID}/billing`
764764
const membersUrl = `https://opencode.ai/workspace/${authInfo.workspaceID}/members`
765-
if (!billing.paymentMethodID && billing.balance <= 0) throw new CreditsError(t("zen.api.error.noPaymentMethod", { billingUrl }))
765+
if (!billing.paymentMethodID && billing.balance <= 0)
766+
throw new CreditsError(t("zen.api.error.noPaymentMethod", { billingUrl }))
766767
if (billing.balance <= 0) throw new CreditsError(t("zen.api.error.insufficientBalance", { billingUrl }))
767768

768769
const now = new Date()

0 commit comments

Comments
 (0)