Fix bug 63618 - Payments: Payer. The payment page skips the payer's email address if a different case is used.

This commit is contained in:
Tatiana Lopaeva 2023-08-10 15:37:13 +03:00
parent 4d2bc180b0
commit a100fdc3e1

View File

@ -338,11 +338,11 @@ class PaymentStore {
const { userStore, currentTariffStatusStore } = authStore;
const { user } = userStore;
const { customerId } = currentTariffStatusStore;
const { payerInfo } = currentTariffStatusStore;
if (!user) return false;
if (!user || !payerInfo) return false;
return user.email === customerId;
return user.email === payerInfo.email;
}
get isStripePortalAvailable() {