Skip to content

Commit

Permalink
fix creating order
Browse files Browse the repository at this point in the history
  • Loading branch information
yuliiakaras committed Dec 23, 2024
1 parent 85c7d4c commit 5a2e8dd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export class UBSPersonalInformationComponent extends FormBaseComponent implement
this.dispatchPersonalData();
});

this.personalDataForm.statusChanges.pipe(takeUntil(this.$destroy)).subscribe(() => {
this.personalDataForm.statusChanges.pipe(debounceTime(500), takeUntil(this.$destroy)).subscribe(() => {
this.store.dispatch(SetSecondFormStatus({ isValid: this.personalDataForm.valid }));
});
this.store.dispatch(SetSecondFormStatus({ isValid: this.personalDataForm.valid }));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,17 @@ <h3 class="font-bolt order-title">{{ 'order-details.your-order' | translate }}</
<p class="order-header">{{ 'order-details.recipient' | translate }}</p>
<ul class="order-list" *ngIf="personalData.senderFirstName; else defaultCase">
<li class="order-list-item">{{ personalData.senderFirstName }} {{ personalData.senderLastName }}</li>
<li class="order-list-item">{{ personalData.senderPhoneNumber | slice: -9 | phoneNumberTreat: '380' }}</li>
<li class="order-list-item">
{{ personalData.senderPhoneNumber ? (personalData.phoneNumber | slice: -9 | phoneNumberTreat: '380') : '' }}
</li>
<li class="order-list-item">{{ personalData.senderEmail }}</li>
</ul>
<ng-template #defaultCase>
<ul class="order-list">
<li class="order-list-item">{{ personalData.firstName }} {{ personalData.lastName }}</li>
<li class="order-list-item">{{ personalData.phoneNumber | slice: -9 | phoneNumberTreat: '380' }}</li>
<li class="order-list-item">
{{ personalData.phoneNumber ? (personalData.phoneNumber | slice: -9 | phoneNumberTreat: '380') : '' }}
</li>
<li class="order-list-item">{{ personalData.email }}</li>
</ul>
</ng-template>
Expand Down

0 comments on commit 5a2e8dd

Please sign in to comment.