We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efd64ee commit 1c1e7ecCopy full SHA for 1c1e7ec
1 file changed
src/api/challenges/challenges.service.ts
@@ -513,12 +513,6 @@ export class ChallengesService {
513
);
514
515
return payments.map((payment) => {
516
- const paymentStatus =
517
- payment.status ??
518
- (challenge.task?.isTask && payment.currency === PrizeType.USD
519
- ? PaymentStatus.ON_HOLD_ADMIN
520
- : undefined);
521
-
522
return {
523
winnerId: payment.userId.toString(),
524
type:
@@ -530,7 +524,7 @@ export class ChallengesService {
530
title: challenge.name,
531
525
description: payment.description || challenge.name,
532
526
externalId: challenge.id,
533
- ...(paymentStatus ? { status: paymentStatus } : {}),
527
+ ...(payment.status ? { status: payment.status } : {}),
534
528
details: [
535
529
{
536
totalAmount: payment.amount,
0 commit comments