From b0143012ad6818c32f20061b7056d07de1f0e4bf Mon Sep 17 00:00:00 2001 From: "Jason M. Hasperhoven" Date: Tue, 8 Oct 2024 19:04:23 +0400 Subject: [PATCH] Fix lp asset view --- src/old/components/lpAssetView.tsx | 4 ++-- src/pages/trade/[[...params]].tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/old/components/lpAssetView.tsx b/src/old/components/lpAssetView.tsx index dc7901e5..05a22ec5 100644 --- a/src/old/components/lpAssetView.tsx +++ b/src/old/components/lpAssetView.tsx @@ -18,8 +18,8 @@ interface LPAssetViewProps { } const LPAssetView: FC = ({ 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)); diff --git a/src/pages/trade/[[...params]].tsx b/src/pages/trade/[[...params]].tsx index 2f2c0c1d..ad0c13da 100644 --- a/src/pages/trade/[[...params]].tsx +++ b/src/pages/trade/[[...params]].tsx @@ -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]);