TOF is a serious heart defect, but it can be repaired with surgery. The surgery may be done when your child is 3 to 6 months old. Or it may be done when your child is 1 to 2 years old.