From a6ac170440b229ccbf5680b11fdfedbc12982448 Mon Sep 17 00:00:00 2001 From: chrisduma-ledger Date: Tue, 19 Nov 2024 16:08:11 +0200 Subject: [PATCH] fix: rm clog --- libs/ledger-live-common/src/wallet-api/Exchange/server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ledger-live-common/src/wallet-api/Exchange/server.ts b/libs/ledger-live-common/src/wallet-api/Exchange/server.ts index 43eecab52fa1..74f6ec5aa73d 100644 --- a/libs/ledger-live-common/src/wallet-api/Exchange/server.ts +++ b/libs/ledger-live-common/src/wallet-api/Exchange/server.ts @@ -126,7 +126,7 @@ export const handlers = ({ } let exchangeParams: ExchangeStartParamsUiRequest; - console.log("params", params); + // Use `if else` instead of switch to leverage TS type narrowing and avoid `params` force cast. if (params.exchangeType == "SWAP") { exchangeParams = extractSwapStartParam(params, accounts);