Skip to content

Commit

Permalink
refactor: make status page params more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
dohaki committed Nov 1, 2023
1 parent 84e229e commit 1790150
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/views/Bridge/hooks/useBridgeAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,13 @@ export function useBridgeAction(
);
});

const statusPageSearchParams = new URLSearchParams({
originChainId: String(frozenPayload.fromChain),
destinationChainId: String(frozenPayload.toChain),
bridgeTokenSymbol: tokenSymbol,
}).toString();
history.push(
`/bridge/${tx.hash}?${new URLSearchParams({
originChainId: String(frozenPayload.fromChain),
destinationChainId: String(frozenPayload.toChain),
bridgeTokenSymbol: tokenSymbol,
}).toString()}`,
`/bridge/${tx.hash}?${statusPageSearchParams}`,
// This state is stored in session storage and therefore persist
// after a refresh of the deposit status page.
{
Expand Down

0 comments on commit 1790150

Please sign in to comment.