Browse Source
760: Fix the balance-too-low check for the Long button disable r=da-kami a=da-kami fixes https://github.com/itchysats/itchysats/issues/754 - Pass in the balance so it can be evaluated 🤪 - 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. Co-authored-by: Daniel Karzel <daniel@comit.network>chore/leaner-release-process
bors[bot]
3 years ago
committed by
GitHub
2 changed files with 4 additions and 3 deletions
Loading…
Reference in new issue