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: {
41
41
42
42
const isStakingPeriodStarted = props . showProjectCardFooter ;
43
43
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
+ ) ;
50
52
if ( ! project ) return null ;
51
53
const projectRecipient =
52
54
project . recipient . slice ( 0 , 5 ) + "..." + project . recipient . slice ( - 4 ) ;
You can’t perform that action at this time.
0 commit comments