Skip to content

Commit

Permalink
feat: update dex-ui link
Browse files Browse the repository at this point in the history
  • Loading branch information
Space-Bean committed Oct 10, 2024
1 parent 47ee49e commit b9c8d9f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion projects/dex-ui/src/pages/Liquidity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React, { useCallback, useRef, useState } from "react";

import { useNavigate } from "react-router-dom";
import styled from "styled-components";
import { useChainId } from "wagmi";

import { mediaQuery, size } from "src/breakpoints";
import { Error } from "src/components/Error";
Expand All @@ -25,6 +26,7 @@ import { useWellWithParams } from "src/wells/useWellWithParams";
export const Liquidity = () => {
const { well, loading, error } = useWellWithParams();
const navigate = useNavigate();
const chainId = useChainId();

const [tab, setTab] = useState(0);

Expand Down Expand Up @@ -64,7 +66,7 @@ export const Liquidity = () => {
label="← Back To Well Details"
width={"100%"}
margin={"0px"}
onClick={() => navigate(`../wells/${well?.address || ""}`)}
onClick={() => navigate(`../wells/${chainId.toString()}/${well?.address || ""}`)}
/>
</LoadingItem>
<LiquidityBox well={well} loading={loading} />
Expand Down

0 comments on commit b9c8d9f

Please sign in to comment.