Skip to content

Commit

Permalink
Fix lp asset view
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonMHasperhoven committed Oct 8, 2024
1 parent c9de74a commit b014301
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/old/components/lpAssetView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ interface LPAssetViewProps {
}

const LPAssetView: FC<LPAssetViewProps> = ({ sectionTitle, lp_event }) => {
const { asset1, asset2 } = lp_event.lpevent_attributes.tradingPair
?? lp_event.execution_event_attributes.tradingPair;
const { asset1, asset2 } = lp_event.lpevent_attributes?.tradingPair
?? lp_event.execution_event_attributes?.tradingPair;

const { data: asset1Token } = useTokenAssetDeprecated(asset1 && base64ToUint8Array(asset1.inner));
const { data: asset2Token } = useTokenAssetDeprecated(asset2 && base64ToUint8Array(asset2.inner));
Expand Down
4 changes: 2 additions & 2 deletions src/pages/trade/[[...params]].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ export default function TradingPairs() {
useEffect(() => {
// Check if there are no query params
if (!router.asPath.includes('[[...params]]') && !router.query.params) {
// Redirect to /trade/penumbra:usdc
router.push('/trade/penumbra:usdc');
// Redirect to /trade/penumbra:gm
router.push('/trade/penumbra:gm');
}
}, [router.query]);

Expand Down

0 comments on commit b014301

Please sign in to comment.