From 0a53bf6b7e1336601bc2a8d60f92dfae6c0fb24d Mon Sep 17 00:00:00 2001 From: Darshan Date: Mon, 2 Jun 2025 15:59:09 +0530 Subject: [PATCH] update: comment, just ocd things. --- src/lib/stores/billing.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/stores/billing.ts b/src/lib/stores/billing.ts index 1f7d646e6..c99e18f64 100644 --- a/src/lib/stores/billing.ts +++ b/src/lib/stores/billing.ts @@ -516,8 +516,8 @@ export async function checkForNewDevUpgradePro(org: Organization) { try { await sdk.forConsole.billing.getCouponAccount(NEW_DEV_PRO_UPGRADE_COUPON); } catch (error) { - // already utilized if the error is 409 if ( + // already utilized if error is 409 error instanceof AppwriteException && error?.code === 409 && error.type === 'billing_coupon_already_used'