Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 1b989ca

Browse files
author
vikasrohit
committed
-- Fixed issue with profile view of a member who has only participated in design challenge but never win.
1 parent bca3456 commit 1b989ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/services/profile.service.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@
121121
'track': 'DESIGN',
122122
'subTrack': subTrack.name,
123123
'rank': false,
124+
'challenges': subTrack.challenges,
124125
'wins': subTrack.wins,
125126
'mostRecentEventDate': new Date(subTrack.mostRecentEventDate)
126127
};
@@ -162,7 +163,7 @@
162163

163164
function removeRanklessNoSubmissions(arr) {
164165
return arr.filter(function(subTrack) {
165-
return subTrack && (subTrack.rank || subTrack.rating || subTrack.wins || subTrack.fulfillment || subTrack.submissions);
166+
return subTrack && ((subTrack.track === 'DESIGN' && subTrack.challenges) || subTrack.rank || subTrack.rating || subTrack.wins || subTrack.fulfillment || subTrack.submissions);
166167
});
167168
}
168169

0 commit comments

Comments
 (0)