From c5eaeb14973e4e264a79874dc16dc01aa946a096 Mon Sep 17 00:00:00 2001 From: Amritanshu Date: Mon, 6 Mar 2023 10:35:17 +0530 Subject: [PATCH] Fix: Receive payment did not show display reason --- .../src/app/sales/receive-payment/receive-payment.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookie/src/app/sales/receive-payment/receive-payment.component.ts b/bookie/src/app/sales/receive-payment/receive-payment.component.ts index 718cea1..c604c52 100644 --- a/bookie/src/app/sales/receive-payment/receive-payment.component.ts +++ b/bookie/src/app/sales/receive-payment/receive-payment.component.ts @@ -63,7 +63,7 @@ export class ReceivePaymentComponent { .pipe( tap( (x: SettleOption[]) => - (this.displayReason = x.reduce((o, n) => o ?? n.hasReason, this.displayReason)), + (this.displayReason = x.reduce((o, n) => o || n.hasReason, this.displayReason)), ), tap((x: SettleOption[]) => (this.displayTable = x.length > 1)), map((x: SettleOption[]) =>