Update order pages with error handling and improved product images
This commit is contained in:
@@ -90,4 +90,7 @@ public partial class CheckoutSummary : ComponentBase
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user