Skip to content
This repository was archived by the owner on Jul 15, 2022. It is now read-only.

Commit 77dfa66

Browse files
Hotfix - v21.36.1 on Master (#1859)
* bugfix/swap-operation-details-duplicates getCompleteSwapHistory modified to avoid returning the same swap operations multiple times (#1854) * v21.36.1 Co-authored-by: Côme Grellard <[email protected]>
1 parent 81f0a25 commit 77dfa66

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"type": "git",
99
"url": "https://github.com/LedgerHQ/ledger-live-common"
1010
},
11-
"version": "21.36.0",
11+
"version": "21.36.1",
1212
"main": "lib/index.js",
1313
"types": "lib/index.d.ts",
1414
"license": "Apache-2.0",

src/exchange/swap/getCompleteSwapHistory.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ const getCompleteSwapHistory = (
113113
day = startOfDay(swap.operation.date);
114114
data = [swap];
115115
continue;
116-
} else if (!skip) {
116+
} else if (!skip && !data.find((d) => d.swapId === swap.swapId)) {
117117
data.push(swap);
118118
}
119119

0 commit comments

Comments
 (0)