If it is a minor issue, you can repair it. However, if it is a major one that can bring hazards, you must replace it. So the decision depends on the nature of the damage.