Modify removal of transaction

main
QiTao Weng 3 years ago
parent 3cb0a91d2a
commit 52132e3bd0

@ -70,7 +70,8 @@ export class Transaction extends Unit {
this.compare(left, right).then(match => {
if ( match ) {
this.blockchain.submitTransactions([left, right])
newSnapshot = newSnapshot.filter( (item) => item !== left && item !== right )
this.firebase.ref('transaction').child(left.key).remove()
this.firebase.ref('transaction').child(right.key).remove()
}
})
}

Loading…
Cancel
Save