Skip to content

Commit

Permalink
use given currency symbol if it's set (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
basilkot committed Nov 6, 2024
1 parent 5127472 commit 6ccbd35
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/VirtoCommerce.CoreModule.Core/Currency/Currency.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,12 @@ private void Initialize()
}

string symbol;
if (_code != null && _isoCurrencySymbolDict.TryGetValue(_code, out symbol) && symbol != null)
if (Symbol == null && _code != null && _isoCurrencySymbolDict.TryGetValue(_code, out symbol) && symbol != null)
{
Symbol = symbol;
}
if (Symbol != null)
{
NumberFormat.CurrencySymbol = Symbol;
}
}
Expand Down

0 comments on commit 6ccbd35

Please sign in to comment.