Skip to content

Commit fc0b7cd

Browse files
fix typos
1 parent 8a5e76e commit fc0b7cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/ChallengeService.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,7 +1245,7 @@ async function getPhasesAndPopulate (data) {
12451245
* Get challenge.
12461246
* @param {Object} currentUser the user who perform operation
12471247
* @param {String} id the challenge id
1248-
* @param {String} legacyId the legacy id
1248+
* @param {Boolean} checkIfExists flag to check if challenge exists
12491249
* @returns {Object} the challenge with given id
12501250
*/
12511251
async function getChallenge (currentUser, id, checkIfExists) {
@@ -1274,7 +1274,7 @@ async function getChallenge (currentUser, id, checkIfExists) {
12741274
}
12751275
}
12761276
if (checkIfExists) {
1277-
return _.pick(challenge, ['id', 'legacuId'])
1277+
return _.pick(challenge, ['id', 'legacyId'])
12781278
}
12791279

12801280
await helper.ensureUserCanViewChallenge(currentUser, challenge)

0 commit comments

Comments
 (0)