Skip to content

Commit

Permalink
Fix a bug of switching chart tab doesn't reload the candles. (#310)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruixhuang authored Dec 10, 2024
1 parent 00778e5 commit c96fd3a
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,13 @@ class dydxMarketPriceCandlesViewPresenter: HostedViewPresenter<dydxMarketPriceCa
.store(in: &subscriptions)
}

override func stop() {
super.stop()

// let start() reload the chart
listInteractor.list = []
}

private func updateChartType(index: Int) {
if index < ChartType.displayTypes.count {
let displayType = ChartType.displayTypes[index]
Expand Down

0 comments on commit c96fd3a

Please sign in to comment.