Skip to content

Commit

Permalink
Remove duplicate check validation for NDC creation (should allow it)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrosousabarreto committed Jun 26, 2023
1 parent 9c6f6b1 commit c31a6eb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -499,17 +499,17 @@ export class ParticipantDetailComponent implements OnInit {
}
this.newNDC.currencyCode = currencyElement.value;

// check overlaps
if(this.participant.value?.netDebitCaps) {
const duplicateNDC = this.participant.value.netDebitCaps.find(
(item) =>
item.currencyCode === this.newNDC!.currencyCode
);
if (duplicateNDC) {
this._messageService.addWarning("An Net Debit Cap already exists for that currency");
return;
}
}
// // check overlaps
// if(this.participant.value?.netDebitCaps) {
// const duplicateNDC = this.participant.value.netDebitCaps.find(
// (item) =>
// item.currencyCode === this.newNDC!.currencyCode
// );
// if (duplicateNDC) {
// this._messageService.addWarning("An Net Debit Cap already exists for that currency");
// return;
// }
// }
// TODO check duplicates also in requests (pending approval)

this._participantsSvc.createNDC(this.participant.value!.id, this.newNDC).subscribe(async(value) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ services:


admin-ui:
image: mojaloop/vnext-admin-ui-svc:0.1.13
image: mojaloop/vnext-admin-ui-svc:0.1.14
depends_on:
transfers-api-svc:
condition: service_healthy
Expand Down

0 comments on commit c31a6eb

Please sign in to comment.