Disconnect the Whirlpool refrigerator from the electrical outlet. Open the front door of the icemaker compartment.
Check the flap to ensure both pins are firmly seated. The icemaker flap uses a spring-loaded pin system to hold the door in place. If either pin has popped out, the flap cannot operate properly.
Push the flap door all the way to the left until the pin on the right disengages from the assembly. Lift the left pin out to remove the flap door completely.
Insert either the left or right pin into the assembly and press into place. Push on the flap door until you can insert the pin in the other side of the assembly. Open and close the flap several times to make sure it's working properly.