Removed vulnerabilities
This commit is contained in:
@@ -101,20 +101,23 @@ public partial class Home : ComponentBase
|
||||
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
if (CartService.ShoppingCart.Items.Count == 0)
|
||||
await CartService.LoadCartFromStorageAsync();
|
||||
//if (CartService.ShoppingCart.Items.Count == 0)
|
||||
// await CartService.LoadCartFromStorageAsync();
|
||||
}
|
||||
|
||||
protected override async Task OnAfterRenderAsync(bool firstRender)
|
||||
{
|
||||
if (firstRender == false && HydrationService.CartHydrated == false)
|
||||
{
|
||||
if(!CartService.ShoppingCart.CustomerId.HasValue)
|
||||
await HydrationService.EnsureCustomerExistsAsync(CancellationToken);
|
||||
}
|
||||
//if (firstRender == false && HydrationService.CartHydrated == false)
|
||||
//{
|
||||
// if(!CartService.ShoppingCart.CustomerId.HasValue)
|
||||
// await HydrationService.EnsureCustomerExistsAsync(CancellationToken);
|
||||
//}
|
||||
}
|
||||
|
||||
protected override async Task OnParametersSetAsync() => await LoadCatalogDataAsync();
|
||||
protected override async Task OnParametersSetAsync()
|
||||
{
|
||||
//await LoadCatalogDataAsync();
|
||||
}
|
||||
|
||||
private async Task LoadCatalogDataAsync()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user