9 month old with whooping cough

I’m so upset how did this happen? I’m up to date with all our vaccines what am I gonna do :( please help I’m a first time mom and seeing her cough like this breaks my heart the doctor gave some meds but it’s so hard 😔☹️☹️☹️☹️