We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ac5998c + e6a17ca commit b132422Copy full SHA for b132422
client/src/components/Verify.vue
@@ -68,7 +68,20 @@
68
this.$http.post(`/api/verify`, body)
69
.then(response => {
70
if (response.body.success) {
71
- this.$router.push({ name: 'Interests' })
+ this.$http.get(`/api/user/${this.$store.state.User.Id}/channels`)
72
+ .then(response => {
73
+ if (response.body.success) {
74
+ if (response.body.channels.length === 0) {
75
+ this.$router.push({ name: 'Interests' })
76
+ } else {
77
+ this.$router.push({ name: 'Browse' })
78
+ }
79
80
+ this.failureMessage = response.body.message
81
82
+ }, response => {
83
+ console.log(response)
84
+ })
85
} else {
86
this.failureMessage = response.body.message
87
}
0 commit comments