I have an ESTA which remains valid for some time to come.

I have completed but not filed an application for a B2 Visa.

In the event of my B2 application being refused, how will this affect my ESTA? Does it become void?

Grateful for any guidance.

TIA