GE Profile Dishwasher is not always draining

My GE profile dishwasher does not always drain. A repair person looked at it. The flapper, air cap, hose, & pump were fine. So he thought it might be the control pannel. I’m single & only use it 2-3 times a month. The dishwasher is 7 years old. Any suggestions on why it won’t drain? Does it pay to replace the control panel?

Thanks
ferhurst