-
Notifications
You must be signed in to change notification settings - Fork 2
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
base: master
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -51,7 +51,9 @@ export const PositionTitle: FC<{ | |||
display="flex" | |||
alignItems="center" | |||
_hover={{ cursor: 'pointer' }} | |||
onClick={() => navigate(`/pools/${network?.id}/${poolId}`)} | |||
onClick={() => |
There was a problem hiding this comment.
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)); |
There was a problem hiding this comment.
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} |
There was a problem hiding this comment.
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} |
There was a problem hiding this comment.
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
No description provided.