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

Merged
merged 10 commits into from
Nov 26, 2024
Merged

Fix invalid pools page loading #61

merged 10 commits into from
Nov 26, 2024

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 26, 2024 4:59am

@@ -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.

const params = useParams();

const { network: connectedNetwork } = useNetwork();
const networkId = params.networkId ? Number(params.networkId) : connectedNetwork?.id;
Copy link
Contributor

Choose a reason for hiding this comment

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

pool header could have been rendered from pages with networkId param and also from position page which did not have networkId param (network is taken from connected wallet)

Now it is proper fixed

image image image

Copy link

codecov bot commented Nov 26, 2024

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@noisekit noisekit merged commit 7aa6117 into master Nov 26, 2024
11 of 13 checks passed
@noisekit noisekit deleted the fix/pools-loading branch November 26, 2024 05:06
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.

4 participants