Commit a9b18412 authored by zeroleak's avatar zeroleak
Browse files

fix promise error

parent e6d5e2ad
......@@ -90,11 +90,17 @@ class MixService {
}
startMixUtxo(utxo) {
return backendService.utxo.startMix(utxo.hash, utxo.index).then(() => Promise.all(walletService.fetchState(), this.fetchState()))
return backendService.utxo.startMix(utxo.hash, utxo.index).then(() => this.refresh())
}
refresh() {
const walletState = walletService.fetchState()
const state = this.fetchState()
return Promise.all([walletState, state])
}
stopMixUtxo(utxo) {
return backendService.utxo.stopMix(utxo.hash, utxo.index).then(() => Promise.all(walletService.fetchState(), this.fetchState()))
return backendService.utxo.stopMix(utxo.hash, utxo.index).then(() => this.refresh())
}
getPoolsForMix(utxo) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment