Navigation Menu

Skip to content

Commit

Permalink
Fix(dashboard): Actually return what API responded
Browse files Browse the repository at this point in the history
  • Loading branch information
gazmull committed Feb 21, 2019
1 parent 993578a commit 9a8b967
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/js/dashboard.js
Expand Up @@ -86,7 +86,7 @@ async function promptID (action) {

if (response)
sweet({
text: `${action}: ${character.name} (${character.id})`,
text: `${action}: ${response.name} (${response.id})`,
titleText: 'Operation Successfull',
type: 'success',
});
Expand Down Expand Up @@ -132,7 +132,7 @@ async function submit (action, value = '', id) {

if (json.error) throw json.error.message;

return true;
return json;
}

function clean (value = '') {
Expand Down

0 comments on commit 9a8b967

Please sign in to comment.