Whining is a red flag that your kid is upset and needs your attention, not just a bad habit. Make sure to acknowledge your child’s feelings and help her find the right words to express what she needs.
Summary: https://www.parents.com/parenting/better-parenting/advice/5-ways-to-wipe-out-whining/.