It depends on the reason for the water leak. Say, if it is due to a corroded tank or cracked tank, then it won’t last and needs replacement. But if it is due to inlet pipes or drain valves, a simple replacement of the components is enough, and it won’t affect the life of the water heater. Thus, seek an expert’s opinion to understand the impact of the damage on the water heater’s life.