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

feat(coinmarket): disable 'you buy' select in trezor btc only firmware #14694

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

adderpositive
Copy link
Contributor

@adderpositive adderpositive commented Oct 3, 2024

Description

  • Bitcoin-only hardware is limited so that Swaps are not showing, we should also limit Buy to Bitcoin only.
  • You buy dropdown should be displayed to indicate BTC, but disabled.
    image

Related

Resolves #14693

@adderpositive adderpositive added feature Product related issue visible for end user +Invity Related to Invity project labels Oct 3, 2024
@adderpositive adderpositive self-assigned this Oct 3, 2024
const { currencySelect, cryptoSelect } = context.getValues();
const supportedCryptoCurrencies = buyInfo?.supportedCryptoCurrencies;
const isBitcoinOnly = device?.firmwareType === FirmwareType.BitcoinOnly;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use util hasBitcoinOnlyFirmware

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please refactor it on all places in trade section (in case it is also somewhere else in suite 🥺 🙏 you can too)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

look for device?.firmwareType === FirmwareType.BitcoinOnly and device.firmwareType === FirmwareType.BitcoinOnly

@tomasklim
Copy link
Member

/rebase

Copy link

github-actions bot commented Oct 4, 2024

@trezor-ci trezor-ci force-pushed the feat/coinmarket-disable-select branch from 4fcf30e to 9d92a21 Compare October 4, 2024 09:19
@tomasklim tomasklim merged commit 128b963 into develop Oct 4, 2024
22 checks passed
@tomasklim tomasklim deleted the feat/coinmarket-disable-select branch October 4, 2024 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Product related issue visible for end user +Invity Related to Invity project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Coinmarket - BTC-only firmware should display only BTC in Buy
2 participants