There are a whole stack of issues here:
- No leadership
- lack of standards over coding/design patterns etc
- No QA or testing
- No code review
- No leadership
- A lack of concern, the person's lack of effort didn't bother you until you had to clean it up.
The team has fundamental issues, in fact you aren't a team at all. A team collaborates and takes care of each other and doesn't leave the other members in trouble like this.
The person's bad input is just a symptom, not a cause, the root issue is at the team level, and your employer needs a leader to come in and address it, someone needs to set standards and ensure people meet them, everything else is just symptoms.