Skip to content
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

Merged
merged 2 commits into from
Sep 11, 2024
Merged

fix(coinmarket): send and verify modals #14230

merged 2 commits into from
Sep 11, 2024

Conversation

adderpositive
Copy link
Contributor

@adderpositive adderpositive commented Sep 9, 2024

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

  1. Choose Polygon account
  2. Go to Trade-Exchange
  3. Choose From ETH
  4. Choose To USDT and some Amount to proceed with the trade
  5. Continue to Confirm on Trezor & send in the trade

Screenshot

image (1)
image (2)

Correct behavior

image

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

  1. Choose an ETH account
  2. Go to Trade-Buy
  3. Choose You buy BTC
  4. Select Buy
  5. Click on Confirm on Trezor (verify)

Buggy

image

Expected behavior

image

Related Issue

Resolve #14231

Other info

Please also check if the Send form is not affected.

@adderpositive adderpositive added bug Something isn't working as expected +Invity Related to Invity project release Will be included in the upcoming release. Needs to be backported to the release branch. labels Sep 9, 2024
@adderpositive adderpositive self-assigned this Sep 9, 2024
@jvaclavik
Copy link
Contributor

Screenshot 2024-09-10 at 09 01 53

Could you please delete this border? 🙏 (it shouldn't be white)

Copy link
Contributor

@jvaclavik jvaclavik left a 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

Copy link
Contributor

@komret komret left a 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.

@komret
Copy link
Contributor

komret commented Sep 11, 2024

Great improvements and added unit tests 👏

But note that some unit tests are failing.

@adderpositive adderpositive force-pushed the fix/coinmarket-modals branch 2 times, most recently from 0f448ab to b6471e4 Compare September 11, 2024 09:28
@adderpositive
Copy link
Contributor Author

I have found one more bug. It should be ETH account, not BTC in exchange.
obrazek

@adderpositive
Copy link
Contributor Author

I have found one more bug. It should be ETH account, not BTC in exchange. obrazek

should be fixed

@komret
Copy link
Contributor

komret commented Sep 11, 2024

/rebase

Copy link

@komret komret merged commit 69a580c into develop Sep 11, 2024
22 checks passed
@komret komret deleted the fix/coinmarket-modals branch September 11, 2024 13:11
@bosomt
Copy link
Contributor

bosomt commented Sep 12, 2024

QA OK

Info:

  • Suite version: desktop 24.9.1 (d884803)
  • Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) TrezorSuite/24.9.1 Chrome/124.0.6367.243 Electron/30.3.1 Safari/537.36
  • OS: MacIntel
  • Screen: 1512x982
  • Device: Trezor T3T1 2.8.2 regular (revision 37006592dbc3f2d817def0c75ed6a62513895ec5)
  • Transport: BridgeTransport 3.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as expected +Invity Related to Invity project release Will be included in the upcoming release. Needs to be backported to the release branch.
Projects
None yet
5 participants