From 9209139bf42d284befc3334239841d9cf31136f8 Mon Sep 17 00:00:00 2001 From: Matthew Wall Date: Fri, 8 Nov 2024 13:00:02 -0500 Subject: [PATCH] guard claimable in a null check (#6257) --- src/components/asset-list/RecyclerAssetList2/Claimable.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/asset-list/RecyclerAssetList2/Claimable.tsx b/src/components/asset-list/RecyclerAssetList2/Claimable.tsx index 7a34dd140fd..124f31d4798 100644 --- a/src/components/asset-list/RecyclerAssetList2/Claimable.tsx +++ b/src/components/asset-list/RecyclerAssetList2/Claimable.tsx @@ -25,11 +25,10 @@ export const Claimable = React.memo(function Claimable({ uniqueId, extendedState ); const [claimable] = data; + if (!claimable) return null; const nativeDisplay = convertAmountToNativeDisplayWorklet(claimable.value.nativeAsset.amount, nativeCurrency, true); - if (!claimable) return null; - return (