Think of some foods that you like, and consider a treat, and buy those instead of the things that upset you.