fix: call stopPolling at top of handleClick to prevent double-interval on rapid clicks

This commit is contained in:
Ishaan Jaffer 2026-03-07 12:33:08 -08:00
parent 7670d3f097
commit 0acd828a21

View file

@ -89,6 +89,7 @@ export const OAuth2ConnectButton: React.FC<OAuth2ConnectButtonProps> = ({
};
const handleClick = async () => {
stopPolling();
setError(null);
setLoading(true);
try {