The refrigerator is about 13 years old and this was the original light switch. Found out the door ice dispenser is tied into the light switch so it won’t dispense ice unless the door is closed. I changed out the light switch and haven’t had any more problems with dispensing ice.