The base case is when , meaning is a single digit. In this case, the sum is just itself. For example, if , the sum of digits is . You do not need recursion here.
This stopping condition keeps you do not try to break down a single digit further. Once you have reduced the number to one digit through repeated division by , you are done. No more digits to peel off. That's your signal to stop.