From 43fb0f92df1897aafbe55f95172ffd1ba76138f4 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Tue, 23 Dec 2025 15:05:28 +0530 Subject: [PATCH] fix: hide consent warning when consent has been provided --- frontend/src/pages/Billing.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/src/pages/Billing.vue b/frontend/src/pages/Billing.vue index a6e66f43..81ed9a5e 100644 --- a/frontend/src/pages/Billing.vue +++ b/frontend/src/pages/Billing.vue @@ -229,7 +229,7 @@ import { toast, call, } from 'frappe-ui' -import { reactive, inject, onMounted, computed, ref } from 'vue' +import { reactive, inject, onMounted, computed, ref, watch } from 'vue' import { sessionStore } from '../stores/session' import Link from '@/components/Controls/Link.vue' import NotPermitted from '@/components/NotPermitted.vue' @@ -446,6 +446,12 @@ const redirectTo = computed(() => { } }) +watch(billingDetails, () => { + if (billingDetails.member_consent) { + showConsentWarning.value = false + } +}) + usePageMeta(() => { return { title: __('Billing Details'),