Update order pages with error handling and improved product images
This commit is contained in:
@@ -42,5 +42,8 @@ public partial class OrderDetail : ComponentBase
|
||||
_ => "نامشخص",
|
||||
};
|
||||
}
|
||||
|
||||
private static string GetProductImageUrl(string? imageUrl)
|
||||
=> string.IsNullOrWhiteSpace(imageUrl) ? "/images/product-placeholder.svg" : UrlUtility.DownloadUrl+imageUrl;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user