Problem with dependents and now I need to amend my return

Last night I accidentally submitted my 2024 return claiming my daughter as a dependent. The IRS accepted my return. This evening my daughter tried to submit her return asserting that nobody else could claim her as a dependent. The IRS rejected her submission, saying someone else had claimed her as a dependent. 

I found the mistake and corrected it.

How do I move forward? To I file an amended return? Right away? or do I need to wait for the federal and state governments to complete my tax refund before resubmitting? My refund will decrease, so I assume I will need to send a check for the difference.

thanks for your help.