diff --git a/src/Humanizer/Localisation/NumberToWords/FinnishNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/FinnishNumberToWordsConverter.cs index 396bef2cc..a20f5e7c4 100644 --- a/src/Humanizer/Localisation/NumberToWords/FinnishNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/FinnishNumberToWordsConverter.cs @@ -87,9 +87,9 @@ public override string Convert(long input) private string GetOrdinalUnit(int number, bool useExceptions) { - if (useExceptions && OrdinalExceptions.ContainsKey(number)) + if (useExceptions && OrdinalExceptions.TryGetValue(number, out var unit)) { - return OrdinalExceptions[number]; + return unit; } return OrdinalUnitsMap[number];