fix: hide consent warning when consent has been provided

This commit is contained in:
Jannat Patel
2025-12-23 15:05:28 +05:30
parent dd4fbfa8a2
commit 43fb0f92df

View File

@@ -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'),