Smokey room while pregnant 😭

So yesterday I really had to go to the bathroom in public and I went in and the person before me had literally being smoking it stunk and I could barley breathe but I was gonna 💩 myself so I had to go!! Now I’m paranoid could them 5 minutes in a small smoke filled room caused my baby harm?? I’ve never even smoked in my life and now my baby could be harmed from a selfish stranger 😫🤬 I’m 37 weeks