Skip to content

Commit b132422

Browse files
authoredOct 27, 2017
Merge pull request #54 from evan-bradley/issue-36
The frontend won't onboard users changing their email.
2 parents ac5998c + e6a17ca commit b132422

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed
 

‎client/src/components/Verify.vue

+14-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,20 @@
6868
this.$http.post(`/api/verify`, body)
6969
.then(response => {
7070
if (response.body.success) {
71-
this.$router.push({ name: 'Interests' })
71+
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+
} else {
80+
this.failureMessage = response.body.message
81+
}
82+
}, response => {
83+
console.log(response)
84+
})
7285
} else {
7386
this.failureMessage = response.body.message
7487
}

0 commit comments

Comments
 (0)
Please sign in to comment.