fix: timeline not showing when set to public (#37937)
This commit is contained in:
@ -796,7 +796,17 @@ export default function(User) {
|
||||
...user,
|
||||
about: showAbout ? about : '',
|
||||
calendar: showHeatMap ? calendar : {},
|
||||
completedChallenges: showCerts && showTimeLine ? completedChallenges : [],
|
||||
completedChallenges: (function() {
|
||||
if (showTimeLine) {
|
||||
return showCerts
|
||||
? completedChallenges
|
||||
: completedChallenges.filter(
|
||||
({ challengeType }) => challengeType !== 7
|
||||
);
|
||||
} else {
|
||||
return [];
|
||||
}
|
||||
})(),
|
||||
isDonating: showDonation ? isDonating : null,
|
||||
location: showLocation ? location : '',
|
||||
name: showName ? name : '',
|
||||
|
Reference in New Issue
Block a user