Fix error in getSubscriptionPageLocation function

This commit is contained in:
silverpill 2022-09-08 16:45:07 +00:00
parent 239d41175c
commit 376cd9e264

View file

@ -84,11 +84,10 @@ export class ProfileWrapper {
} }
getSubscriptionPageLocation(): string | RouteLocationRaw | null { getSubscriptionPageLocation(): string | RouteLocationRaw | null {
console.log(this.payment_options)
for (const option of this.payment_options) { for (const option of this.payment_options) {
if ( if (
option.type === "link" && option.type === "link" &&
option.name === "EthereumSubscription" && (option.name === "EthereumSubscription" || option.name === "MoneroSubscription") &&
option.href option.href
) { ) {
return option.href return option.href