@@ -32,7 +32,8 @@ export default {
|
||||
return {
|
||||
authStore,
|
||||
authenticated : computed(() => authStore.check),
|
||||
user : computed(() => authStore.user)
|
||||
user : computed(() => authStore.user),
|
||||
crisp: useCrisp()
|
||||
}
|
||||
},
|
||||
|
||||
@@ -58,7 +59,7 @@ export default {
|
||||
redirectIfSubscribed () {
|
||||
if (this.user.is_subscribed) {
|
||||
useAmplitude().logEvent('subscribed', { plan: this.user.has_enterprise_subscription ? 'enterprise' : 'pro' })
|
||||
this.$crisp.push(['set', 'session:event', [[['subscribed', { plan: this.user.has_enterprise_subscription ? 'enterprise' : 'pro' }, 'blue']]]])
|
||||
this.crisp.pushEvent('subscribed', { plan: this.user.has_enterprise_subscription ? 'enterprise' : 'pro' })
|
||||
this.$router.push({ name: 'home' })
|
||||
|
||||
if (this.user.has_enterprise_subscription) {
|
||||
|
||||
Reference in New Issue
Block a user