FIX: RBF broadcast fix

This commit is contained in:
Overtorment 2019-05-25 21:43:28 +01:00
parent 93529b80fe
commit 23ba40eb1f

View file

@ -153,7 +153,11 @@ export default class SendCreate extends Component {
let result = await this.state.fromWallet.broadcastTx(this.state.tx);
console.log('broadcast result = ', result);
if (typeof result === 'string') {
result = JSON.parse(result);
try {
result = JSON.parse(result);
} catch (_) {
result = { result };
}
}
if (result && result.error) {
alert(JSON.stringify(result.error));