Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix leverage slider flickering. (#189)
Max leverage was oscillating between 1.0 (default for null market / market config) and the real maxLeverage. The issue was due to multiple emissions of `tradeInput` causing a switch to a new flow of `state.market(id)` which always starts with `null` before emitting the real value, leading to `1.0` max leverage. Our state flows generally should try to start with the correct value instead of null, i'll make a wider change to fix that.
- Loading branch information