Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit

Permalink
fix: show errors for broadcasttransaction requests
Browse files Browse the repository at this point in the history
  • Loading branch information
michael1011 committed Feb 19, 2019
1 parent da9cb19 commit f1bdb5a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/views/reverse/reverseActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,10 @@ const broadcastClaim = (currency, claimTransaction, cb) => {
})
.then(() => cb())
.catch(error => {
window.alert(`Failed to broadcast claim transaction`);
dispatch(reverseSwapResponse(false, error.data));
const message = error.response.data.error;

window.alert(`Failed to broadcast claim transaction: ${message}`);
dispatch(reverseSwapResponse(false, message));
});
};
};

0 comments on commit f1bdb5a

Please sign in to comment.