File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
components/dashboard/account Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11<template >
2- <div >
2+ <div id = " change-password-container " :class >
33 <form method =" post" v-on:submit.prevent =" submitForm" >
44 <div class =" content-box" >
55 <h2 class =" mb-6 text-grey-darkest font-medium" >{{ $t('dashboard.account.password.title') }}</h2 >
Original file line number Diff line number Diff line change 11<template >
2- <div :class >
2+ <div id = " update-email-container " :class >
33 <form method =" post" v-on:submit.prevent =" submitForm" >
44 <div class =" content-box" >
55 <h2 class =" mb-6 text-grey-darkest font-medium" >{{ $t('dashboard.account.email.title') }}</h2 >
Original file line number Diff line number Diff line change @@ -71,11 +71,11 @@ export default {
7171 . then ( response => {
7272 // If there is a 302 redirect or some other odd behavior (basically, response that isnt
7373 // in JSON format) throw an error and don't try to continue with the login.
74- if ( ! ( response . data instanceof Object ) ) {
74+ if ( ! ( response . data instanceof Object ) && response . status !== 201 ) {
7575 return reject ( new Error ( 'An error was encountered while processing this request.' ) ) ;
7676 }
7777
78- commit ( 'setEmail' , response . data . email ) ;
78+ commit ( 'setEmail' , email ) ;
7979 return resolve ( ) ;
8080 } )
8181 . catch ( reject ) ;
You can’t perform that action at this time.
0 commit comments