Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix invalid pools page loading #61

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Rickk137
Copy link
Contributor

No description provided.

@Rickk137 Rickk137 self-assigned this Nov 12, 2024
Copy link

vercel bot commented Nov 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
liquidity-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 12, 2024 4:47pm

@@ -51,7 +51,9 @@ export const PositionTitle: FC<{
display="flex"
alignItems="center"
_hover={{ cursor: 'pointer' }}
onClick={() => navigate(`/pools/${network?.id}/${poolId}`)}
onClick={() =>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need to send people to the pool. not just ignore clicks.


export const Pool = () => {
const { poolId, networkId } = useParams();

const { data: pool } = usePool(Number(networkId), String(poolId));
const { data: pool, isLoading } = usePool(Number(networkId), String(poolId));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isPending

<>
<PoolHeader
mt={3}
name={poolInfo && poolInfo[0].pool.name}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

poolInfo[0].pool.name can be undefined

<PoolHeader
mt={3}
name={poolInfo && poolInfo[0].pool.name}
network={network || MAINNET}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should not just assume mainnet, this is not right

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants