Skip to content

Commit

Permalink
guard claimable in a null check (#6257)
Browse files Browse the repository at this point in the history
  • Loading branch information
walmat authored Nov 8, 2024
1 parent a884f9c commit 9209139
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/asset-list/RecyclerAssetList2/Claimable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<Box
as={ButtonPressAnimation}
Expand Down

0 comments on commit 9209139

Please sign in to comment.