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

Commit 6a9fa18

Browse files
authored
Merge pull request #1209 from royshouvik/fix-tc-1207
Fix 1207:Profile stats don't show sometimes
2 parents 640ff9a + 901f0c0 commit 6a9fa18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/profile/about/about.controller.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ import angular from 'angular'
4141

4242
profileVm.statsPromise.then(function() {
4343
vm.categories = profileVm.categories
44-
vm.marathonRating = profileVm.categories['MARATHON_MATCH'] && profileVm.categories['MARATHON_MATCH'].rating
45-
vm.SRMRating = profileVm.categories['SRM'] && profileVm.categories['SRM'].rating
44+
vm.marathonRating = profileVm.categories && profileVm.categories['MARATHON_MATCH'] && profileVm.categories['MARATHON_MATCH'].rating
45+
vm.SRMRating = profileVm.categories && profileVm.categories['SRM'] && profileVm.categories['SRM'].rating
4646
vm.displaySection.stats = profileVm.showEditProfileLink
4747
})
4848

0 commit comments

Comments
 (0)