I haven’t been eating this whole week

Me

I’m 21 weeks pregnant and last Wednesday something happened to our family and I’ve been crying everyday since. I haven’t been eating either I eat like a sandwich every day and nothing else I just can’t eat sometimes I even feel hungry but I just don’t eat because I’m sad all the time. Today I woke up with my stomach growling so much, I’m dying of hunger so I made something to eat I’m starting to not feel like this anymore. I’m just wondering could this harm the baby in any way? It’s only been a week and before this happened I was eating alot I even gained 25 pounds since I got pregnant I just hope I didn’t do anything bad to my baby by not eating