Fix isChallengeCompleted not returning a boolean

This commit is contained in:
Berkeley Martinez
2016-02-10 10:35:40 -08:00
parent a4dd9667ca
commit d23f7fa8f2

View File

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