From 5187c96b308f541c1ba41d6a1bce6d776382295d Mon Sep 17 00:00:00 2001 From: "Felix C. Morency" <1102868+fmorency@users.noreply.github.com> Date: Tue, 3 Sep 2024 09:15:43 -0400 Subject: [PATCH] fix: denom can be null --- components/factory/components/DenomImage.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/factory/components/DenomImage.tsx b/components/factory/components/DenomImage.tsx index ac4bb37d..01594f12 100644 --- a/components/factory/components/DenomImage.tsx +++ b/components/factory/components/DenomImage.tsx @@ -88,7 +88,7 @@ export const DenomImage = ({ denom }: { denom: any }) => { } // Check for MFX token first - if (denom.base.includes('umfx')) { + if (denom?.base?.includes('umfx')) { return ( { } // Then check for other conditions - if (!denom.uri || !isSupported || imageError) { - return ; + if (!denom?.uri || !isSupported || imageError) { + return ; } // For all other cases, use the denom.uri