File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
packages/grant-explorer/src/features/round/ViewRoundPage Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -41,12 +41,14 @@ export function ProjectCard(props: {
4141
4242 const isStakingPeriodStarted = props . showProjectCardFooter ;
4343
44- const isAlreadyInCart = projects . some (
45- ( cartProject ) =>
46- cartProject . chainId === Number ( props . chainId ) &&
47- cartProject . grantApplicationId === project . grantApplicationId &&
48- cartProject . roundId === props . roundId
49- ) ;
44+ const isAlreadyInCart =
45+ project &&
46+ projects . some (
47+ ( cartProject ) =>
48+ cartProject . chainId === Number ( props . chainId ) &&
49+ cartProject . grantApplicationId === project . grantApplicationId &&
50+ cartProject . roundId === props . roundId
51+ ) ;
5052 if ( ! project ) return null ;
5153 const projectRecipient =
5254 project . recipient . slice ( 0 , 5 ) + "..." + project . recipient . slice ( - 4 ) ;
You can’t perform that action at this time.
0 commit comments