Browse Source
- Pass in the balance - The condition using `&&` did not evaluate correctly when the balance is `0` (because of how integers are evaluated in a boolean expression). The wallet balance in the `Trade` component is always a number (if we don't know a balance set it to 0...) which simplifies the logic. Tested the behaviour in the UI with different balances (0, < margin, > margin) and it behaves as expected.chore/leaner-release-process
2 changed files with 4 additions and 3 deletions
Loading…
Reference in new issue