From f58214bfcdca602d1b258e16eaf62183eb96b661 Mon Sep 17 00:00:00 2001 From: Nezzar KEFIF <36443340+nezz0746@users.noreply.github.com> Date: Wed, 2 Oct 2024 08:36:31 +0200 Subject: [PATCH 1/8] fix: .find callback breaking at address casing --- .../Request/Pay/Views/Initial.view.tsx | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/components/Request/Pay/Views/Initial.view.tsx b/src/components/Request/Pay/Views/Initial.view.tsx index ade8118f..78f821e4 100644 --- a/src/components/Request/Pay/Views/Initial.view.tsx +++ b/src/components/Request/Pay/Views/Initial.view.tsx @@ -194,6 +194,12 @@ export const InitialView = ({ } } + const chainDetails = consts.peanutTokenDetails.find((chain) => chain.chainId === requestLinkData.chainId) + + const tokenRequestedLogoURI = chainDetails?.tokens.find((token) => + utils.compareTokenAddresses(token.address, requestLinkData.tokenAddress) + )?.logoURI + return (