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.

Update PriceFormatter.cs

supportefe39fedfac4
diff --git a/src/Business/Grand.Business.Catalog/Services/Prices/PriceFormatter.cs b/src/Business/Grand.Business.Catalog/Services/Prices/PriceFormatter.cs
index 0e15ee3f4..d9c6ce428 100644
--- a/src/Business/Grand.Business.Catalog/Services/Prices/PriceFormatter.cs
+++ b/src/Business/Grand.Business.Catalog/Services/Prices/PriceFormatter.cs
@@ -38,7 +38,7 @@ namespace Grand.Business.Catalog.Services.Prices
if (targetCurrency == null)
return amount.ToString("C");
- var result = "";
+ string result;
if (!string.IsNullOrEmpty(targetCurrency.CustomFormatting))
{
var cultureInfo = !string.IsNullOrEmpty(targetCurrency.DisplayLocale)