All files / src/app/pages/checkout-address checkout-address-page.component.html

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 291x                                                        
<div data-testing-id="checkout-address-page">
  <ng-container *ngIf="basket$ | async as basket">
    <ng-container
      *ngIf="
        (currentUser$ | async) || (validBasketAddresses$ | async) || nextStepRequested;
        else anonymousCheckoutStart
      "
    >
      <h1>{{ 'checkout.addresses.heading' | translate }}</h1>
      <ish-checkout-address
        [basket]="basket"
        [error]="(basketError$ | async) || (addressesError$ | async)"
        (nextStep)="nextStep()"
      />
    </ng-container>
    <ng-template #anonymousCheckoutStart>
      <h1>&nbsp;</h1>
      <!-- empty h1 to provide space -->
      <ish-checkout-address-anonymous
        [basket]="basket"
        [error]="(basketError$ | async) || (addressesError$ | async)"
        (nextStep)="nextStep()"
      />
    </ng-template>
  </ng-container>
 
  <ish-loading *ngIf="(basketLoading$ | async) || (addressesLoading$ | async)" />
</div>