mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-06 02:48:13 +00:00
fix: call stopPolling at top of handleClick to prevent double-interval on rapid clicks
This commit is contained in:
parent
7670d3f097
commit
0acd828a21
1 changed files with 1 additions and 0 deletions
|
|
@ -89,6 +89,7 @@ export const OAuth2ConnectButton: React.FC<OAuth2ConnectButtonProps> = ({
|
|||
};
|
||||
|
||||
const handleClick = async () => {
|
||||
stopPolling();
|
||||
setError(null);
|
||||
setLoading(true);
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue