message: mm - fix memory leak - dont add events for finished/stopped swaps
diff: @@ -142,9 +142,22 @@ class SwapRow extends Component<any, any> {
  this.tryRefund(timeLeft)
  */
  +
  + const {
  + row: {
  + isFinished,
  + isRefunded,
  + isStoppedSwap,
  + isSwapTimeout,
  + id,
  + },
  + } = this.props
  +
  + if (!isFinished && !isRefunded && !isStoppedSwap && !isSwapTimeout) {
  //@ts-ignore: strictNullChecks
  SwapApp.shared().on('swap enter step', this._handleSwapEnterStep)
  }
  + }
  componentWillUnmount() {
  console.log('History unmounted')
  @@ -174,12 +187,15 @@ class SwapRow extends Component<any, any> {
  isTurbo,
  sellCurrency,
  isFinished,
  + isSwapTimeout,
  id,
  scriptValues,
  isStoppedSwap,
  step,
  } = swapState
  + if (step <=1 && isSwapTimeout) return null
  +
  const canBeRefunded = values && scriptBalance > 0
  const isDeletedSwap = isFinished || isRefunded || isStoppedSwap
  