From 22f700c37f80b50c985b2e96469ea1d1567708a9 Mon Sep 17 00:00:00 2001 From: Thomas Brillard Date: Wed, 30 Oct 2024 10:11:55 +0100 Subject: [PATCH] fixed: swap history for tokens explorer link (#8227) --- .changeset/nervous-kangaroos-mix.md | 5 +++++ .../src/renderer/drawers/SwapOperationDetails/index.tsx | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 .changeset/nervous-kangaroos-mix.md diff --git a/.changeset/nervous-kangaroos-mix.md b/.changeset/nervous-kangaroos-mix.md new file mode 100644 index 000000000000..730b1d01493d --- /dev/null +++ b/.changeset/nervous-kangaroos-mix.md @@ -0,0 +1,5 @@ +--- +"ledger-live-desktop": minor +--- + +fixed: swap history for tokens explorer link diff --git a/apps/ledger-live-desktop/src/renderer/drawers/SwapOperationDetails/index.tsx b/apps/ledger-live-desktop/src/renderer/drawers/SwapOperationDetails/index.tsx index ddfd9c564bec..e917713c05ec 100644 --- a/apps/ledger-live-desktop/src/renderer/drawers/SwapOperationDetails/index.tsx +++ b/apps/ledger-live-desktop/src/renderer/drawers/SwapOperationDetails/index.tsx @@ -126,9 +126,9 @@ const SwapOperationDetails = ({ const theme = useTheme(); const statusColor = getStatusColor(status, theme); const { t } = useTranslation(); - const url = - fromCurrency.type === "CryptoCurrency" && - getTransactionExplorer(getDefaultExplorerView(fromCurrency), operation.hash); + const mainCurrency = + fromCurrency.type === "CryptoCurrency" ? fromCurrency : fromCurrency.parentCurrency; + const url = getTransactionExplorer(getDefaultExplorerView(mainCurrency), operation.hash); useEffect(() => { const getProvideData = async () => {