I'm not aiming this at anyone in particular, but if you want to help someone who's having a bad time, especially who's depressed, try to find another way of helping instead of saying "is there anything I can do to help?"
That offer seems helpful but it means the person who is suffering now has a new task: finding you something to do.
Instead think of a way you can help and offer that.
It takes the burden onto yourself, and crucially it shows what level of help you actually mean.