From 09cb2c25fad49ae9ad69145e4e2503ba9ad8840e Mon Sep 17 00:00:00 2001 From: Rodri Sanchez Date: Mon, 27 Feb 2023 12:08:01 -0300 Subject: [PATCH 1/2] Change new subscriber status --- src/components/Settings/Subscribe/Subscribe.container.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Settings/Subscribe/Subscribe.container.js b/src/components/Settings/Subscribe/Subscribe.container.js index 4a1e6ca98..94c4155a5 100644 --- a/src/components/Settings/Subscribe/Subscribe.container.js +++ b/src/components/Settings/Subscribe/Subscribe.container.js @@ -140,7 +140,7 @@ export class SubscribeContainer extends PureComponent { const newSubscriber = { userId: user.id, country: location.countryCode || 'Not localized', - status: 'algo', + status: NOT_SUBSCRIBED, product: { planId: offer.id, subscriptionId: product.id, From 981c6933f2ebbab66d90fda89ffee9a78b5e365c Mon Sep 17 00:00:00 2001 From: Rodri Sanchez Date: Mon, 27 Feb 2023 12:08:49 -0300 Subject: [PATCH 2/2] Add return condition after create subscriberId --- src/components/Settings/Subscribe/Subscribe.container.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Settings/Subscribe/Subscribe.container.js b/src/components/Settings/Subscribe/Subscribe.container.js index 94c4155a5..d78f681b1 100644 --- a/src/components/Settings/Subscribe/Subscribe.container.js +++ b/src/components/Settings/Subscribe/Subscribe.container.js @@ -155,6 +155,7 @@ export class SubscribeContainer extends PureComponent { console.error('Cannot subscribe product', e.message); this.handleError(e); } + return; } console.error('Cannot subscribe product', e.message); this.handleError(e);