fixed amount input field to properly interpret BTC#800
fixed amount input field to properly interpret BTC#800theborakompanioni merged 5 commits intodevelfrom
Conversation
0xSaksham
left a comment
There was a problem hiding this comment.
This is the most important thing mentioned by edi. It works great now!
|
Hey @theborakompanioni, if you have a moment, could you please take a look? I added a test case for |
|
I've updated the |
so will there be a solution in the future where we can differ between |
Well in the English number format, JavaScript only accepts |
|
ok got it, lets keep it at |
|
Okay, @editwentyone, as @amitx13 has argued, making it a text input only (as opposed to a number input) increases consistentcy between browsers, but lacks the ability to use browser-native up/down arrows.. I can see that this is a reasonable trade-off - what do you think? |
|
absolutely. good idea, I bet no one uses the arrows anyways! |
Then, the only thing holding up the PR now are the reviews. |
* fix: amount input field to properly interpret BTC (#800) * feat: add SchedulerConfirmationModal component for starting scheduled sweep (#803) * feat: add SchedulerConfirmationModal component for starting scheduled sweep * removed dead code * modal is centered and design changes * used ConfirmModal and pre-written styles * refactor: SchedulerConfirmationModal.tsx minor production error * build(deps): update dependencies (#813) @emotion/react ^11.11.4 → ^11.13.0 @types/react ^18.3.2 → ^18.3.3 formik ^2.4.5 → ^2.4.6 qrcode ^1.5.3 → ^1.5.4 react-bootstrap ^2.9.2 → ^2.10.4 react-router-bootstrap ^0.26.2 → ^0.26.3 react-router-dom ^6.23.1 → ^6.26.1 husky ^8.0.3 → ^9.1.4 i18next ^23.11.4 → ^23.13.0 lint-staged ^14.0.1 → ^15.2.9 prettier ^3.2.5 → ^3.3.3 react-i18next ^14.1.1 → ^15.0.1 * refactor: align utxo list and modal components (#815) * refactor: externalize UtxoIcon component and utxoTags function * refactor: externalize UtxoConfirmations component * refactor: reuse utxo icons in Jar details and UTXO list * refactor(ui): simpler checkbox in utxo list * refactor(send): vertically align balance * refactor(send): tooltip for shortened addresses * refactor(ui): externalize UtxoTags component * ui(send): show considered UTXOs before performing transaction (#807) --------- Co-authored-by: apX13_ <[email protected]> Co-authored-by: Thebora Kompanioni <[email protected]>
This PR fixes #799
Fixed the amount input field to correctly interpret
1.0as1 BTC. Previously, it was incorrectly treated as a much smaller value; for example, entering0.1was considered0.00000001 BTC.