Don't redirect if email change was not successful

This commit is contained in:
roschaefer 2019-09-25 13:54:55 +02:00
parent 9808e1c4f8
commit 89cc6da5f1

View File

@ -30,9 +30,11 @@ export default {
},
},
created() {
setTimeout(() => {
this.$router.replace({ name: 'settings-my-email-address' })
}, 3000)
if (this.success) {
setTimeout(() => {
this.$router.replace({ name: 'settings-my-email-address' })
}, 3000)
}
},
async asyncData(context) {
const {