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

Commit 8bf7f3b

Browse files
committed
Fixing challenge prize lookup
1 parent 390e11b commit 8bf7f3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/ProcessorService.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ async function parsePayload (payload, m2mToken, isCreated = true) {
143143
data.checkpointPrize = 0
144144
}
145145

146-
// prize type can be Challenge prizes/Check Point
147-
const challengePrizes = _.filter(payload.prizeSets, p => p.type !== constants.prizeSetTypes.CheckPoint)
146+
// prize type can be Challenge prizes
147+
const challengePrizes = _.filter(payload.prizeSets, p => p.type !== constants.prizeSetTypes.ChallengePrizes)
148148
if (challengePrizes.length > 1) {
149149
throw new Error('Challenge prize information is invalid.')
150150
}

0 commit comments

Comments
 (0)