diff --git a/packages/console/src/pages/UserDetails/UserSettings/components/UserSocialIdentities/index.tsx b/packages/console/src/pages/UserDetails/UserSettings/components/UserSocialIdentities/index.tsx index 4ba9069b9..a7bd5cf46 100644 --- a/packages/console/src/pages/UserDetails/UserSettings/components/UserSocialIdentities/index.tsx +++ b/packages/console/src/pages/UserDetails/UserSettings/components/UserSocialIdentities/index.tsx @@ -38,7 +38,9 @@ function UserSocialIdentities({ userId, identities, onDelete }: Props) { keyPrefix: 'admin_console', }); - const { data, error, mutate } = useSWR('api/connectors'); + const { data, error, isLoading, mutate } = useSWR( + 'api/connectors' + ); const [deletingConnector, setDeletingConnector] = useState(); const [isSubmitting, setIsSubmitting] = useState(false); @@ -51,8 +53,6 @@ function UserSocialIdentities({ userId, identities, onDelete }: Props) { return getConnectorGroups(data); }, [data]); - const isLoading = !connectorGroups && !error; - const handleDelete = async (target: string) => { if (isSubmitting) { return;