Skip to content

Commit

Permalink
fixed: swap history for tokens explorer link (#8227)
Browse files Browse the repository at this point in the history
  • Loading branch information
CremaFR authored Oct 30, 2024
1 parent 52d6621 commit 22f700c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/nervous-kangaroos-mix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ledger-live-desktop": minor
---

fixed: swap history for tokens explorer link
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down

0 comments on commit 22f700c

Please sign in to comment.