File tree 2 files changed +3
-1
lines changed
__tests__/shared/components/challenge-listing/ChallengeCard/__snapshots__
src/shared/components/challenge-listing/ChallengeCard
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ exports[`Matches shallow shapshot shapshot 2 1`] = `
66
66
" currentPhases" : Array [
67
67
" Registration" ,
68
68
],
69
+ " events" : Array [],
69
70
" id" : " 1" ,
70
71
" legacy" : Object {
71
72
" track" : " DATA_SCIENCE" ,
@@ -109,6 +110,7 @@ exports[`Matches shallow shapshot shapshot 3 1`] = `
109
110
" currentPhases" : Array [
110
111
" Registration" ,
111
112
],
113
+ " events" : Array [],
112
114
" id" : " long id" ,
113
115
" legacy" : Object {
114
116
" track" : " DATA_SCIENCE" ,
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ function ChallengeCard({
71
71
< TrackIcon
72
72
track = { track }
73
73
subTrack = { subTrack }
74
- tcoEligible = { challenge . events . length > 0 ? challenge . events [ 0 ] . eventName : '' }
74
+ tcoEligible = { challenge . events && challenge . events . length > 0 ? challenge . events [ 0 ] . eventName : '' }
75
75
isDataScience = { challenge . isDataScience }
76
76
/>
77
77
</ span >
You can’t perform that action at this time.
0 commit comments