fix: don't allow billing page access if batch is sold out

This commit is contained in:
Jannat Patel
2025-03-19 10:45:47 +05:30
parent e94a689f83
commit 0692aceda4
3 changed files with 19 additions and 2 deletions

View File

@@ -245,12 +245,10 @@ const paymentLink = createResource({
})
const generatePaymentLink = () => {
console.log('called')
paymentLink.submit(
{},
{
validate() {
console.log('validation start')
if (!billingDetails.source) {
return __('Please let us know where you heard about us from.')
}