diff --git a/package.json b/package.json index 183d7e1cd5..871889402d 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "type": "git", "url": "https://github.com/LedgerHQ/ledger-live-common" }, - "version": "21.36.0", + "version": "21.36.1", "main": "lib/index.js", "types": "lib/index.d.ts", "license": "Apache-2.0", diff --git a/src/exchange/swap/getCompleteSwapHistory.ts b/src/exchange/swap/getCompleteSwapHistory.ts index e62f6d0d0e..fff8943278 100644 --- a/src/exchange/swap/getCompleteSwapHistory.ts +++ b/src/exchange/swap/getCompleteSwapHistory.ts @@ -113,7 +113,7 @@ const getCompleteSwapHistory = ( day = startOfDay(swap.operation.date); data = [swap]; continue; - } else if (!skip) { + } else if (!skip && !data.find((d) => d.swapId === swap.swapId)) { data.push(swap); }