From 6ef7c51abdccbcfa41818de1b888f192060839d3 Mon Sep 17 00:00:00 2001 From: wllmshao Date: Thu, 28 Mar 2024 15:23:27 -0400 Subject: [PATCH] Add testnet initia dex prettyName --- src/components/RouteDisplay/SwapStep.tsx | 6 +++--- src/constants/swap-venues.ts | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/RouteDisplay/SwapStep.tsx b/src/components/RouteDisplay/SwapStep.tsx index bd037edb..7e1c52a9 100644 --- a/src/components/RouteDisplay/SwapStep.tsx +++ b/src/components/RouteDisplay/SwapStep.tsx @@ -118,7 +118,7 @@ export const SwapStep = ({ action, actions, statusData }: SwapStepProps) => { onError={onImageError} src={action.venue.logoUri} /> - {venue.prettyName} + {venue?.prettyName} {explorerLink && ( @@ -159,7 +159,7 @@ export const SwapStep = ({ action, actions, statusData }: SwapStepProps) => { src={action.venue.logoUri} alt={action.venue.name} /> - {venue.prettyName} + {venue?.prettyName} {explorerLink && ( @@ -222,7 +222,7 @@ export const SwapStep = ({ action, actions, statusData }: SwapStepProps) => { onError={onImageError} src={action.venue.logoUri} /> - {venue.prettyName} + {venue?.prettyName} {explorerLink && ( diff --git a/src/constants/swap-venues.ts b/src/constants/swap-venues.ts index 2eca2fb2..4a813564 100644 --- a/src/constants/swap-venues.ts +++ b/src/constants/swap-venues.ts @@ -30,4 +30,7 @@ export const SWAP_VENUES: Record = { "terra-white-whale": { prettyName: "Terra White Whale", }, + "testnet-initia-dex": { + prettyName: "Testnet Initia DEX", + }, };