Skip to content

Commit 43fb0f9

Browse files
committed
fix: hide consent warning when consent has been provided
1 parent dd4fbfa commit 43fb0f9

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

frontend/src/pages/Billing.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ import {
229229
toast,
230230
call,
231231
} from 'frappe-ui'
232-
import { reactive, inject, onMounted, computed, ref } from 'vue'
232+
import { reactive, inject, onMounted, computed, ref, watch } from 'vue'
233233
import { sessionStore } from '../stores/session'
234234
import Link from '@/components/Controls/Link.vue'
235235
import NotPermitted from '@/components/NotPermitted.vue'
@@ -446,6 +446,12 @@ const redirectTo = computed(() => {
446446
}
447447
})
448448
449+
watch(billingDetails, () => {
450+
if (billingDetails.member_consent) {
451+
showConsentWarning.value = false
452+
}
453+
})
454+
449455
usePageMeta(() => {
450456
return {
451457
title: __('Billing Details'),

0 commit comments

Comments
 (0)