Fix isChallengeCompleted not returning a boolean

pull/6870/head
Berkeley Martinez 2016-02-10 10:35:40 -08:00
parent a4dd9667ca
commit d23f7fa8f2
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ function isChallengeCompleted(user, challengeId) {
if (!user) {
return false;
}
return user.challengeMap[challengeId];
return !!user.challengeMap[challengeId];
}
/*