Skip to content

Commit 1c54c5f

Browse files
committed
fix: changes BTS transaction status on rejected in chat when node validation fails
1 parent 369a5cf commit 1c54c5f

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

src/store/modules/btc-base/btc-base-actions.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,18 @@ function createActions(options) {
233233
} catch (error) {
234234
context.commit('transactions', [{ hash: signedTransaction.txid, status: 'REJECTED' }])
235235
PendingTxStore.remove(context.state.crypto)
236+
237+
if (admAddress) {
238+
context.commit(
239+
'chat/updateMessage',
240+
{
241+
partnerId: admAddress,
242+
id: signedTransaction.txid,
243+
status: 'REJECTED'
244+
},
245+
{ root: true }
246+
)
247+
}
236248
throw error
237249
}
238250
},

0 commit comments

Comments
 (0)