Update order pages with error handling and improved product images
This commit is contained in:
@@ -46,6 +46,9 @@ public partial class Cart : ComponentBase, IDisposable
|
||||
|
||||
private static string FormatPrice(long price) => string.Format("{0:N0} ", price);
|
||||
|
||||
private static string GetProductImageUrl(string? imageUrl)
|
||||
=> string.IsNullOrWhiteSpace(imageUrl) ? "/images/product-placeholder.svg" : imageUrl;
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
CartService.OnChange -= StateHasChanged;
|
||||
|
||||
Reference in New Issue
Block a user