The issue was that the capture status was being set to "Email captured successfully with bulletproof system!" but never cleared, causing the spinner to keep showing indefinitely. I've added setTimeout calls to clear the capture status after 2-3 seconds for all the different status messages, which will stop the spinner from showing continuously.
I've upgraded Next.js from 15.1.0 to 15.1.11.
The code returns the following error:
Encountered a script tag while rendering React component. Scripts inside React components are never executed when rendering on the client. Consider using template tag instead (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template).
Revise the code to address the error.
I was previewing: /