To stop impulse shopping driven by sadness or boredom, you must separate the emotional trigger from the buying action by introducing friction and alternative rewards. Sadness creates a need for comfort, while boredom creates a demand for stimulation.
Treat occasional impulse purchases as learning opportunities rather than personal failures. Examine what triggered the urge so you can plan a healthier response next time.
https://www.wisdom.vedaspark.com/faqs/why-do-i-spend-money-when-i-feel-stressed