Skip to content

Commit

Permalink
,
Browse files Browse the repository at this point in the history
  • Loading branch information
xgaia committed Jan 8, 2020
1 parent 8c63b86 commit c6089b9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion askomics/react/src/routes/account/update_apikey.jsx
Expand Up @@ -24,7 +24,7 @@ export default class UpdateApiKey extends Component {
error: response.data.error,
errorMessage: response.data.errorMessage,
user: response.data.user,
success: !response.data.error
success: !response.data.error,
status: response.data.error ? 500 : 200
})
if (!this.state.error) {
Expand Down
2 changes: 1 addition & 1 deletion askomics/react/src/routes/account/update_password.jsx
Expand Up @@ -49,7 +49,7 @@ export default class UpdatePassword extends Component {
errorMessage: response.data.errorMessage,
user: response.data.user,
success: !response.data.error,
status: response.data.error ? 500 : 200
status: response.data.error ? 500 : 200,
oldPassword: '',
newPassword: '',
confPassword: ''
Expand Down
2 changes: 1 addition & 1 deletion askomics/react/src/routes/account/update_profile.jsx
Expand Up @@ -52,7 +52,7 @@ export default class UpdateProfile extends Component {
error: response.data.error,
errorMessage: response.data.errorMessage,
user: response.data.user,
success: !response.data.error
success: !response.data.error,
status: response.data.error ? 500 : 200
})
if (!this.state.error) {
Expand Down

0 comments on commit c6089b9

Please sign in to comment.