Skip to content

Commit

Permalink
Emktg 3265 fix subscription billing (#559)
Browse files Browse the repository at this point in the history
* fix the subscription when plan has expired

* fix the subscription when plan has expired

* fix the subscription when plan has expired

* fix eslint
  • Loading branch information
ClaraLpresta authored Sep 13, 2024
1 parent b96c4fc commit e9c2ef7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@
<b-button
class="mx-1 mt-3 mt-md-0 mr-md-1 text-nowrap ml-auto"
variant="outline-primary"
@click="$emit('startSubscription')"
@click="$emit(
'startSubscription',
isSubscriptionRunning ? 'subscription_reactivation' : 'subscription_funnel'
)"
>
{{ $t('cta.resubscribe') }}
</b-button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
/>
<alert-subscribe-to-continue
v-else-if="!billingRunning && !billingSubscription && facebookOnboarded"
@startSubscription="handleStartSubscription('subscription_funnel')"
@startSubscription="handleStartSubscription('subscription_reactivation')"
/>
<alert-subscription-cancelled
v-else-if="billingSubscription && billingSubscription.cancelled_at"
:subscription="billingSubscription"
@startSubscription="handleStartSubscription('subscription_reactivation')"
@startSubscription="handleStartSubscription($event)"
/>
<modal-module-upgrade-for-billing
v-if="!billingContext && facebookOnboarded"
Expand Down

0 comments on commit e9c2ef7

Please sign in to comment.