That flew right under my radar

11. How to Prevent Fruit Flies in the Future
Preventing fruit flies in the future involves a combination of cleanliness and vigilance. Regularly check your fruits and vegetables for signs of overripeness and consume or discard them promptly. Store produce in the refrigerator when possible to slow down the ripening process.

Keep your kitchen clean by wiping down surfaces and taking out the trash regularly. Ensure that your trash can has a tight-fitting lid to prevent fruit flies from accessing food scraps. By maintaining a clean and tidy kitchen, you can significantly reduce the likelihood of a fruit fly infestation.