-
-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(coinmarket): send and verify modals #14230
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't understand the logic in detail, but I didn't spot any issues except the border color. Since you fix it I'm approving
35ce994
to
22e2078
Compare
22e2078
to
0d92859
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer to do this without the useEffects, if possible. They are not linked to the modals closely enough and I am afraid that it could lead to future bugs where we expect the reducer value to be cleared while it is not. Perhaps the same result could be achived with props or middlewares.
packages/suite/src/hooks/wallet/coinmarket/form/common/useCoinmarketAccount.ts
Outdated
Show resolved
Hide resolved
packages/suite/src/hooks/wallet/coinmarket/offers/useCoinmarketCommonOffers.ts
Outdated
Show resolved
Hide resolved
Great improvements and added unit tests 👏 But note that some unit tests are failing. |
0f448ab
to
b6471e4
Compare
/rebase |
Start rebasing: https://github.com/trezor/trezor-suite/actions/runs/10811779764 |
549d977
to
8713f5a
Compare
QA OK Info:
|
1. An incorrectly selected account in the verify step
Describe the bug
Instead of the currently selected Trezor account, the account from the exchange form should be selected.
Expected behavior
You should be able to interact with an ETH account, not a Polygon account in the send modal.
How to reproduce
From
ETHTo
USDT and someAmount
to proceed with the tradeConfirm on Trezor & send
in the tradeScreenshot
Correct behavior
Related Issue
Resolve #14218
2. An incorrect account is selected in the Send modal form
Describe the bug
Incorrect account selected in the Verify step – this can be recognized by the presence of 'Including tokens' when buying BTC.
Expected behavior
There should be selected the correct account and should not be visible
Including tokens
subheading.How to reproduce
You buy
BTCBuy
Confirm on Trezor
(verify)Buggy
Expected behavior
Related Issue
Resolve #14231
Other info
Please also check if the Send form is not affected.