File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -73,8 +73,9 @@ export class WinningsService {
7373 const hasActiveTaxForm = await this . taxFormRepo . hasActiveTaxForm (
7474 body . winnerId ,
7575 ) ;
76- const hasPaymentMethod =
77- await this . paymentMethodRepo . getConnectedPaymentMethod ( body . winnerId ) ;
76+ const hasConnectedPaymentMethod = Boolean (
77+ await this . paymentMethodRepo . getConnectedPaymentMethod ( body . winnerId ) ,
78+ ) ;
7879
7980 for ( const detail of body . details || [ ] ) {
8081 const paymentModel = {
@@ -90,7 +91,7 @@ export class WinningsService {
9091
9192 paymentModel . net_amount = Prisma . Decimal ( detail . grossAmount ) ;
9293 paymentModel . payment_status =
93- hasPaymentMethod && hasActiveTaxForm
94+ hasConnectedPaymentMethod && hasActiveTaxForm
9495 ? PaymentStatus . OWED
9596 : PaymentStatus . ON_HOLD ;
9697
You can’t perform that action at this time.
0 commit comments