Fix isChallengeCompleted not returning a boolean
parent
a4dd9667ca
commit
d23f7fa8f2
|
@ -40,7 +40,7 @@ function isChallengeCompleted(user, challengeId) {
|
|||
if (!user) {
|
||||
return false;
|
||||
}
|
||||
return user.challengeMap[challengeId];
|
||||
return !!user.challengeMap[challengeId];
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue