message: dont start steps if swap is finished
diff: @@ -37,6 +37,16 @@ class Flow {
  return app.env.storage.getItem(`flow.${id}`)
  }
  + _isFinished() {
  + const {
  + isStoppedSwap,
  + isRefunded,
  + isFinished,
  + } = this.state
  +
  + return (isStoppedSwap || isRefunded || isFinished)
  + }
  +
  _persistState() {
  const state = Flow.read(this.app, this.swap)
  @@ -60,8 +70,9 @@ class Flow {
  // wait events placed
  setTimeout(() => {
  - if (this.state.step >= this.steps.length)
  - return
  + if ((this.state.step >= this.steps.length)
  + || this._isFinished()
  + ) return
  else this.goStep(this.state.step)
  }, 0)
  }
  