Fix: Receive payment did not show display reason

This commit is contained in:
Amritanshu Agrawal 2023-03-06 10:35:17 +05:30
parent f408e84af3
commit c5eaeb1497
1 changed files with 1 additions and 1 deletions

View File

@ -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[]) =>