mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-26 14:03:28 -04:00
🐛Fix subscription view just subscribed alert message
This commit is contained in:
parent
fde8904fd8
commit
5264fc6181
1 changed files with 4 additions and 0 deletions
|
@ -230,6 +230,9 @@ class RecipientSubs
|
|||
me.patch({headers: {'X-Change-Plan': 'true'}})
|
||||
|
||||
unsubscribe: (email, render) ->
|
||||
delete @state
|
||||
@stateMessage = ''
|
||||
delete @justSubscribed
|
||||
@addSubscribing(email)
|
||||
render()
|
||||
stripeInfo = _.clone(me.get('stripe'))
|
||||
|
@ -262,6 +265,7 @@ class RecipientSubs
|
|||
if @recipientEmails? and @justSubscribed? and recipient.emailLower in @recipientEmails
|
||||
@justSubscribed.push recipient.emailLower
|
||||
@nextPaymentAmount = utils.getSponsoredSubsAmount(basicPlanPrice, count, me.get('stripe')?.subscriptionID?)
|
||||
@recipientEmails = []
|
||||
render()
|
||||
@supermodel.addRequestResource('sub_recipients', {
|
||||
url: '/db/user/-/sub_recipients'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue