Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ export const useIntegrationPicker = ({

window.removeEventListener('message', processMessageCallback, false);

if (coopDetectedRef.current && pollingIntervalRef.current) return;
if (pollingIntervalRef.current) return;

const connectionAttemptId = connectionAttemptIdRef.current;
teardownOAuth();
Expand Down
2 changes: 1 addition & 1 deletion src/shared/components/loading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const Loading: React.FC<{

useEffect(() => {
if (!onCancel) return;
timerRef.current = setTimeout(() => setShowCancel(true), 8000);
timerRef.current = setTimeout(() => setShowCancel(true), 5000);
return () => {
if (timerRef.current) clearTimeout(timerRef.current);
};
Expand Down
4 changes: 3 additions & 1 deletion src/shared/httpClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ export async function request<T>({
}
}

return (await response.json()) as T;
const text = await response.text();
if (!text) return null;
return JSON.parse(text) as T;
}
Comment on lines +57 to 60
} catch (error) {
logger.error(`Error making request to ${url}`, error);
Expand Down
Loading