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

Commit e587e0f

Browse files
fixed #904 added check for copilot
1 parent 0e308b7 commit e587e0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/profile/profile.controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ import moment from 'moment'
4444
vm.stats = stats
4545
vm.profile.tracks = vm.profile.tracks || []
4646
vm.tracks = ProfileService.getTracks(stats) || vm.profile.tracks
47-
if (stats.COPILOT && stats.COPILOT.contests && vm.profile.tracks.indexOf('COPILOT') == -1) {
47+
if (vm.profile.badges.copilot || (stats.COPILOT && stats.COPILOT.contests && vm.profile.tracks.indexOf('COPILOT') == -1)) {
4848
vm.profile.tracks.push('COPILOT')
4949
}
5050
// flag to indicate if the member has acitivity on topcoder to be shown

0 commit comments

Comments
 (0)