From c9724cec4a019fe48abf99ad5f3162897435e6cc Mon Sep 17 00:00:00 2001 From: Shadrak Gurupnor Date: Mon, 6 Jan 2025 21:41:06 +0530 Subject: [PATCH] fix(partner): Undefined value in Formcontrol --- .../src2/components/partners/BuyPartnerCreditsStripe.vue | 2 +- dashboard/src2/components/partners/PartnerCreditsForm.vue | 4 ++-- dashboard/src2/pages/BillingInvoices.vue | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/dashboard/src2/components/partners/BuyPartnerCreditsStripe.vue b/dashboard/src2/components/partners/BuyPartnerCreditsStripe.vue index 3e00c18cfa..ff56208035 100644 --- a/dashboard/src2/components/partners/BuyPartnerCreditsStripe.vue +++ b/dashboard/src2/components/partners/BuyPartnerCreditsStripe.vue @@ -82,7 +82,7 @@ const createPaymentIntent = createResource({ url: 'press.api.billing.create_payment_intent_for_partnership_fees', params: { amount: props.amount }, validate() { - if (props.amount > props.maximumAmount && !team.doc.erpnext_partner) { + if (props.amount > props.maximumAmount) { throw new DashboardError( `Amount must be lesser than or equal to ${props.maximumAmount}` ); diff --git a/dashboard/src2/components/partners/PartnerCreditsForm.vue b/dashboard/src2/components/partners/PartnerCreditsForm.vue index 662cafdc5f..b68ef2180b 100644 --- a/dashboard/src2/components/partners/PartnerCreditsForm.vue +++ b/dashboard/src2/components/partners/PartnerCreditsForm.vue @@ -3,13 +3,13 @@