That flew right under my radar

Additionally, make sure to regularly clean up any overripe fruit or food scraps that may be attracting fruit flies. Keeping your kitchen clean and free of potential breeding grounds is key to preventing future infestations.
10. Alternative Methods and Their Drawbacks
There are several alternative methods for dealing with fruit flies, but many come with drawbacks. Commercial traps can be expensive and may contain harmful chemicals. Insect sprays can be effective but are not ideal for use around food.
Some people recommend using red wine or beer as bait, but these can be more costly than vinegar and may not be as effective. The vinegar and dish soap trap is a simple, safe, and cost-effective solution that avoids the pitfalls of other methods.