Freezer door pops open when fridge is closed

The freezer door "pops" opens when the fridge door is closed and if not noticed causes condensation in the freezer…if the freezer gasket is replaced will this problem be fixed? Should both gaskets be replaced at the same time?