Skip to content

Commit

Permalink
Use only the first part of the remote API errors when broadcasting tr…
Browse files Browse the repository at this point in the history
…x fails #342
  • Loading branch information
svk31 committed Sep 11, 2017
1 parent 2a43f27 commit 762874a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/actions/TransactionConfirmActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ class TransactionConfirmActions {
console.error(error);
clearTimeout(broadcast_timeout);
// messages of length 1 are local exceptions (use the 1st line)
// longer messages are remote API exceptions (use the 2nd line)
// longer messages are remote API exceptions (use the 1st line)
let splitError = error.message.split( "\n" );
let message = splitError[splitError.length === 1 ? 0 : 1];
let message = splitError[0];
dispatch({
broadcast: false,
broadcasting: false,
Expand Down

0 comments on commit 762874a

Please sign in to comment.