MicrosoftDocs / mslearn-interact-with-data-blazor-web-apps

Sample repo for Interact with Data for Blazor Web Apps Learn Module

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Syntax errors in unit 9

Thebe01 opened this issue · comments

In :

<div class="order-total @(order.Pizzas.Any() ? "" : "hidden")">
       Total:
       <span class="total-price">@order.GetFormattedTotalPrice()</span>
       <a href="checkout" class="@(OrderState.Order.Pizzas.Count == 0 ? "btn btn-warning disabled" : "btn btn-warning")">
           Order >
       </a>
   </div>

Seem to be missing "> after order-total...
and the last " in the line should be removed.
I believe the first line should read : <div class="order-total">@(order.Pizzas.Any() ? "" : "hidden")>