From 2caad838fd6852debf4615cd23ec06cedb0046f6 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Tue, 11 Feb 2025 09:15:28 +0000 Subject: [PATCH] renaming constants --- src/lib/components/billing/estimatedTotal.svelte | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lib/components/billing/estimatedTotal.svelte b/src/lib/components/billing/estimatedTotal.svelte index 1884cc2e8..9c4f217c2 100644 --- a/src/lib/components/billing/estimatedTotal.svelte +++ b/src/lib/components/billing/estimatedTotal.svelte @@ -33,9 +33,9 @@ } catch (e) { if (e instanceof AppwriteException) { if ( - e.type === 'coupon_not_found' || - e.type === 'coupon_already_used' || - e.type === 'billing_credits_unsupported' + e.type === 'billing_coupon_not_found' || + e.type === 'billing_coupon_already_used' || + e.type === 'billing_credit_unsupported' ) { couponData = { code: null, @@ -68,9 +68,9 @@ } catch (e) { if (e instanceof AppwriteException) { if ( - e.type === 'coupon_not_found' || - e.type === 'coupon_already_used' || - e.type === 'billing_credits_unsupported' + e.type === 'billing_coupon_not_found' || + e.type === 'billing_coupon_already_used' || + e.type === 'billing_credit_unsupported' ) { couponData = { code: null,