Skip to content

Commit

Permalink
fix: prevent console errors when rendering order detail page before p…
Browse files Browse the repository at this point in the history
…ayment information is available
  • Loading branch information
shauke committed Aug 19, 2024
1 parent 232759d commit f75e95f
Showing 1 changed file with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,17 @@ <h1>{{ 'account.orderdetails.heading.default' | translate }}</h1>
</ish-info-box>
<!-- Payment -->
<ish-info-box heading="checkout.widget.payment_method.heading" class="infobox-wrapper col-md-6">
<div class="float-right">
<p class="badge badge-info">{{ order.payment.status }}</p>
</div>
<p>
{{ order.payment.displayName }}<br />{{ order.payment.paymentInstrument.accountIdentifier }}
<ng-container *ngIf="!order.payment.displayName && !order.payment.paymentInstrument.accountIdentifier">
{{ order.payment.paymentInstrument }}
</ng-container>
</p>
<ng-container *ngIf="order.payment">
<div class="float-right">
<p class="badge badge-info">{{ order.payment.status }}</p>
</div>
<p>
{{ order.payment.displayName }}<br />{{ order.payment.paymentInstrument.accountIdentifier }}
<ng-container *ngIf="!order.payment.displayName && !order.payment.paymentInstrument.accountIdentifier">
{{ order.payment.paymentInstrument }}
</ng-container>
</p>
</ng-container>
</ish-info-box>
</div>

Expand Down

0 comments on commit f75e95f

Please sign in to comment.