Add userlike only after user is refreshed

This commit is contained in:
Piotr Sarnacki 2015-07-15 12:57:33 +02:00
parent 44d59909d3
commit 72f323bce4

View File

@ -54,6 +54,7 @@ App = Ember.Application.extend(Ember.Evented,
@on 'user:refreshed', (user) ->
Travis.onUserUpdate(user)
Travis.setupUserlike(user)
@on 'user:synced', (user) ->
Travis.onUserUpdate(user)
@ -64,7 +65,6 @@ App = Ember.Application.extend(Ember.Evented,
onUserUpdate: (user) ->
if config.pro
@identifyCustomer(user)
@setupUserlike(user)
@subscribePusher(user)