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

Commit

Permalink
Hotfix - v21.36.1 on Master (#1859)
Browse files Browse the repository at this point in the history
* 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 <come.grellard@ledger.fr>
  • Loading branch information
lambertkevin and cgrellard-ledger committed Apr 6, 2022
1 parent 81f0a25 commit 77dfa66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/exchange/swap/getCompleteSwapHistory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

1 comment on commit 77dfa66

@vercel
Copy link

@vercel vercel bot commented on 77dfa66 Apr 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.