Superior taking credit for my work

I resigned from my position because of a toxic management environment and a boss who takes credit for the work of their subordinates without contributing much. I was anticipating receiving bonuses in December and January. Is there anyone else facing a similar situation? Is it reasonable for me to feel disheartened about it?