The ESTA is canceled once your current passport expires or if any of the information on it changes.
In this case, you are called upon to make a new request and go through the same procedure including payment.
For more information about the data you can change after submitting your request, please see the article “What information can I update? ».