diff --git a/kata-solutions/lcd-digits-kata/lcd-digits-dotnet/LcdDigits/LcdDigits.cs b/kata-solutions/lcd-digits-kata/lcd-digits-dotnet/LcdDigits/LcdDigits.cs index ce532ff..41cf7c6 100644 --- a/kata-solutions/lcd-digits-kata/lcd-digits-dotnet/LcdDigits/LcdDigits.cs +++ b/kata-solutions/lcd-digits-kata/lcd-digits-dotnet/LcdDigits/LcdDigits.cs @@ -28,8 +28,8 @@ public static string[] NumberAsString(int number) for (int i = 1; i < size; i++) power *= 10; - if (number < 10) - return ConvertToSingleDigitStringArray(number / power); + if (power == 1) + return ConvertToSingleDigitStringArray(number); else return AddDigits(ConvertToSingleDigitStringArray(number / power), NumberAsString(number % power)); }