@hmcts/ccpay-web-component 6.0.18 → 6.0.20-beta2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3749,23 +3749,22 @@ class AddRemissionComponent {
3749
3749
  this.errorMessage = '';
3750
3750
  }
3751
3751
  confirmRetroRemission() {
3752
- if (!this.isConfirmationBtnDisabled) {
3753
- this.retroRemission = true;
3754
- this.remissionamt = this.remissionForm.controls.amount.value;
3755
- const requestBody = new AddRetroRemissionRequest(this.remissionamt, this.remissionForm.controls.remissionCode.value);
3756
- this.paymentViewService.postPaymentGroupWithRetroRemissions(decodeURIComponent(this.paymentGroupRef).trim(), this.fee.id, requestBody).subscribe(response => {
3757
- if (JSON.parse(response)) {
3758
- this.isRemissionApplied = true;
3759
- this.viewCompStatus = '';
3760
- this.viewStatus = 'retroremissionconfirmationpage';
3761
- this.remissionReference = JSON.parse(response).remission_reference;
3762
- }
3763
- }, (error) => {
3764
- this.errorMessage = error;
3765
- this.isConfirmationBtnDisabled = false;
3766
- this.cd.detectChanges();
3767
- });
3768
- }
3752
+ this.isConfirmationBtnDisabled = true;
3753
+ this.retroRemission = true;
3754
+ this.remissionamt = this.remissionForm.controls.amount.value;
3755
+ const requestBody = new AddRetroRemissionRequest(this.remissionamt, this.remissionForm.controls.remissionCode.value);
3756
+ this.paymentViewService.postPaymentGroupWithRetroRemissions(decodeURIComponent(this.paymentGroupRef).trim(), this.fee.id, requestBody).subscribe(response => {
3757
+ if (JSON.parse(response)) {
3758
+ this.isRemissionApplied = true;
3759
+ this.viewCompStatus = '';
3760
+ this.viewStatus = 'retroremissionconfirmationpage';
3761
+ this.remissionReference = JSON.parse(response).remission_reference;
3762
+ }
3763
+ }, (error) => {
3764
+ this.errorMessage = error;
3765
+ this.isConfirmationBtnDisabled = false;
3766
+ this.cd.detectChanges();
3767
+ });
3769
3768
  }
3770
3769
  processRefund() {
3771
3770
  this.errorMessage = '';