Skip to content

Commit 6c8470f

Browse files
committed
Merge branch 'develop' of github.com:topcoder-platform/challenge-api-v6 into develop
2 parents 570bae5 + 1331b98 commit 6c8470f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/common/prisma-helper.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,8 @@ function convertChallengeSchemaToPrisma(currentUser, challenge) {
172172
// Database stores values in dollars directly, no amountInCents field exists
173173
prizeData.value = p.value;
174174
// calculate only placement and checkpoint prizes
175-
if (
176-
(s.type === PrizeSetTypeEnum.PLACEMENT || s.type === PrizeSetTypeEnum.CHECKPOINT) &&
177-
p.type === constants.prizeTypes.USD
178-
) {
175+
if (s.type === PrizeSetTypeEnum.PLACEMENT && p.type === constants.prizeTypes.USD)
176+
{
179177
// Values are already in dollars, no conversion needed
180178
totalPrizes += p.value;
181179
}

0 commit comments

Comments
 (0)