Browse Source

fix(admin-ui): Display zero shipping price in test tool

Michael Bromley 6 years ago
parent
commit
0e7e2d36a2

+ 4 - 4
admin-ui/src/app/settings/components/shipping-method-test-result/shipping-method-test-result.component.html

@@ -27,14 +27,14 @@
                 </div>
                 {{ testResult?.eligible }}
             </vdr-labeled-data>
-            <vdr-labeled-data [label]="'common.price' | translate" *ngIf="testResult?.price?.price as price">
-                {{ price / 100 | currency: currencyCode }}
+            <vdr-labeled-data [label]="'common.price' | translate" *ngIf="testResult?.price?.price != null">
+                {{ testResult.price.price / 100 | currency: currencyCode }}
             </vdr-labeled-data>
             <vdr-labeled-data
                 [label]="'common.price-with-tax' | translate"
-                *ngIf="testResult?.price?.priceWithTax as priceWithTax"
+                *ngIf="testResult?.price?.priceWithTax != null"
             >
-                {{ priceWithTax / 100 | currency: currencyCode }}
+                {{ testResult.price.priceWithTax / 100 | currency: currencyCode }}
             </vdr-labeled-data>
         </div>
     </div>