Skip to content

Commit

Permalink
fix: some incorrect swap detail url
Browse files Browse the repository at this point in the history
  • Loading branch information
ryenguyen7411 committed Jul 21, 2023
1 parent 2b0af3b commit 11ed062
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/modules/common/utils/textGenerator/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const titleGenerator = (path: string): JSX.Element => {
return <FormattedMessage id="home.explorer" />;
case PATH.LIQUIDITY:
return <FormattedMessage id="pool.liquidity" />;
case PATH.SWAP + '/[hash]':
case PATH.EXPLORER + '/[hash]':
return <FormattedMessage id="home.explorer" />;
case PATH.POOL:
return <FormattedMessage id="pool.liquidity" />;
Expand Down
2 changes: 1 addition & 1 deletion src/modules/scenes/Common/ExplorerMain/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const ExplorerMain = () => {
return <Search />;
case PATH.LIQUIDITY:
return <></>;
case PATH.SWAP + '/[hash]':
case PATH.EXPLORER + '/[hash]':
return <Search />;
case PATH.FLOAT + '/[hash]':
return <Search />;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export const TxHistoriesItem = ({
}, [dispatch, receivingAddress, txReceivingAddress]);

return (
<Link href={`${chainBridge === 'floats' ? PATH.FLOAT : PATH.SWAP}/${tx.id}`}>
<Link href={`${chainBridge === 'floats' ? PATH.FLOAT : PATH.EXPLORER}/${tx.id}`}>
<TxHistoryRow key={tx.id} bg={bgKey % 2 !== 0} borderColor={borderColor} style={style}>
<Column>
<Status>
Expand Down

0 comments on commit 11ed062

Please sign in to comment.