Skip to content

Commit

Permalink
fix: transaction support id should be swap or bridge source one
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov committed Apr 18, 2023
1 parent 67c31c2 commit d9c7e14
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/widget/src/pages/SwapDetailsPage/SwapDetailsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ export const SwapDetailsPage: React.FC = () => {
};

let supportId =
routeExecution?.route.steps[0].execution?.process.find(
(process) => process.txHash,
)?.txHash ??
routeExecution?.route.steps[0].execution?.process
.filter((process) => process.type !== 'TOKEN_ALLOWANCE')
.find((process) => process.txHash)?.txHash ??
routeExecution?.route.id ??
'';

Expand Down

0 comments on commit d9c7e14

Please sign in to comment.