Skip to content

Commit d0f6f9c

Browse files
committed
fix: Update guest shopping alert to display only when cart has items
1 parent 46099dd commit d0f6f9c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/BookStore.Web/Components/Pages/ShoppingCart.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<MudContainer MaxWidth="MaxWidth.Large" Class="mt-6">
1818
<MudText Typo="Typo.h3" Class="mb-6">Shopping Cart</MudText>
1919

20-
@if (!_isAuthenticated)
20+
@if (!_isAuthenticated && displayCart?.Items.Count > 0)
2121
{
2222
<MudAlert Severity="Severity.Info" Variant="Variant.Outlined" Class="mb-4" role="status">
2323
You are shopping as a guest. Login to save your cart and checkout.

0 commit comments

Comments
 (0)