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

Feature/sup 2120 fix #557

Merged
merged 3 commits into from
Nov 17, 2015
Merged

Feature/sup 2120 fix #557

merged 3 commits into from
Nov 17, 2015

Conversation

tladendo
Copy link
Contributor

fyi @nlitwin this fixes an issue in prod, it's hard to replicate in dev, so if you're testing locally, just make sure the code looks good and nothing is broken

@@ -44,10 +44,13 @@

function activate() {
$scope.numImages = 0;
if (!$scope.challenge.isPrivate && $scope.challenge.userDetails.submissions && $scope.challenge.userDetails.submissions.length > 0) {
$scope.numImages = $scope.challenge.userDetails.submissions.filter(function(submission) {
if ($scope.challenge.userDetails.submissions && $scope.challenge.userDetails.submissions.length > 0) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will $scope.challenge.userDetails always exist? Or do we need to check that that exists as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'll add a check, thx

@nlitwin
Copy link
Contributor

nlitwin commented Nov 16, 2015

Just have the one comment, otherwise LGTM

tladendo added a commit that referenced this pull request Nov 17, 2015
@tladendo tladendo merged commit 77e0af2 into dev Nov 17, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants