Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

Fix condition to check for available currencies in CreateOrUpdate.ProductPrices.cshtml

support47fb586593a3
diff --git a/src/Web/Grand.Web.Vendor/Areas/Vendor/Views/Product/Partials/CreateOrUpdate.ProductPrices.cshtml b/src/Web/Grand.Web.Vendor/Areas/Vendor/Views/Product/Partials/CreateOrUpdate.ProductPrices.cshtml
index 2327d1332..90cc70647 100644
--- a/src/Web/Grand.Web.Vendor/Areas/Vendor/Views/Product/Partials/CreateOrUpdate.ProductPrices.cshtml
+++ b/src/Web/Grand.Web.Vendor/Areas/Vendor/Views/Product/Partials/CreateOrUpdate.ProductPrices.cshtml
@@ -5,7 +5,7 @@
var defaultCurrency = await currencyService.GetPrimaryStoreCurrency();
currencies = currencies.Where(x => x.Id != defaultCurrency.Id).ToList();
}
-@if (!string.IsNullOrEmpty(Model.Id) && currencies.Count is > 0)
+@if (!string.IsNullOrEmpty(Model.Id) && currencies.Any())
{
<div class="panel panel-default">
<div class="panel-body">