Skip to content

Commit

Permalink
Merge pull request #536 from secretkeylabs/tim/eng-2508-disable-swaps…
Browse files Browse the repository at this point in the history
…-for-ledger-accounts

fix: only show swaps button if not on a ledger account
  • Loading branch information
yknl committed Aug 1, 2023
2 parents 03cf6e0 + 126fc26 commit f6144bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/screens/home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,8 @@ function Home() {
</VerifyOrViewContainer>
);

const showSwaps = !isLedgerAccount(selectedAccount);

return (
<>
<AccountHeaderComponent />
Expand All @@ -384,7 +386,7 @@ function Home() {
<RowButtonContainer>
<SquareButton src={ArrowUpRight} text={t('SEND')} onPress={onSendModalOpen} />
<SquareButton src={ArrowDownLeft} text={t('RECEIVE')} onPress={onReceiveModalOpen} />
{/* <SquareButton src={Swap} text={t('SWAP')} onPress={onSwapPressed} /> */}
{showSwaps && <SquareButton src={Swap} text={t('SWAP')} onPress={onSwapPressed} />}
<SquareButton src={CreditCard} text={t('BUY')} onPress={onBuyModalOpen} />
</RowButtonContainer>

Expand Down

0 comments on commit f6144bc

Please sign in to comment.