From a803ed4de08646f1bdcd73ed5ddeba2878217b8a Mon Sep 17 00:00:00 2001 From: Alexandre Chabrolin <9203826+chabroA@users.noreply.github.com> Date: Thu, 24 Aug 2023 17:57:44 +0200 Subject: [PATCH] fixup! [LLD] EVM Family has same capability as Ethereum Family (#4001) --- .../src/renderer/modals/Send/steps/StepSummary.tsx | 2 +- apps/ledger-live-mobile/src/components/Stake/types.ts | 2 +- libs/ledger-live-common/src/exchange/swap/getProviders.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/ledger-live-desktop/src/renderer/modals/Send/steps/StepSummary.tsx b/apps/ledger-live-desktop/src/renderer/modals/Send/steps/StepSummary.tsx index 7a8ac195ae37..24b07e697ab3 100644 --- a/apps/ledger-live-desktop/src/renderer/modals/Send/steps/StepSummary.tsx +++ b/apps/ledger-live-desktop/src/renderer/modals/Send/steps/StepSummary.tsx @@ -69,7 +69,7 @@ const StepSummary = (props: StepProps) => { const { estimatedFees, amount, totalSpent, warnings } = status; const txInputs = "txInputs" in status ? status.txInputs : undefined; - const feeTooHigh = warnings.feeTooHigh; + const { feeTooHigh } = warnings; const currency = getAccountCurrency(account); const feesCurrency = getFeesCurrency(mainAccount); const feesUnit = getFeesUnit(feesCurrency); diff --git a/apps/ledger-live-mobile/src/components/Stake/types.ts b/apps/ledger-live-mobile/src/components/Stake/types.ts index 833917b573d7..49d6e8d06ea2 100644 --- a/apps/ledger-live-mobile/src/components/Stake/types.ts +++ b/apps/ledger-live-mobile/src/components/Stake/types.ts @@ -1,4 +1,4 @@ -type StakingDrawerID = "EthStakingDrawer" | "EvmStakingDrawer"; +type StakingDrawerID = "EvmStakingDrawer"; export type StakingDrawerNavigationProps = { id: StakingDrawerID; diff --git a/libs/ledger-live-common/src/exchange/swap/getProviders.ts b/libs/ledger-live-common/src/exchange/swap/getProviders.ts index 3dfcbe2c0e1c..7c7b6f018874 100644 --- a/libs/ledger-live-common/src/exchange/swap/getProviders.ts +++ b/libs/ledger-live-common/src/exchange/swap/getProviders.ts @@ -26,7 +26,7 @@ const getProviders: GetProviders = async () => { return Object.entries(responseV4.providers).flatMap(([provider, groups]) => { return { - provider: provider, + provider, pairs: groups.flatMap(group => group.methods.flatMap(tradeMethod => Object.entries(group.pairs).flatMap(([from, toArray]) =>