kyd-shared-badge 0.3.84 → 0.3.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/connect/ConnectAccounts.tsx +4 -1
- package/src/types.ts +1 -0
package/package.json
CHANGED
|
@@ -52,7 +52,10 @@ export function ConnectAccounts(props: ConnectAccountsProps) {
|
|
|
52
52
|
const [showGithubManage, setShowGithubManage] = useState(false);
|
|
53
53
|
|
|
54
54
|
const apiBase = apiGatewayUrl || (typeof process !== 'undefined' ? (process.env.NEXT_PUBLIC_API_GATEWAY_URL as string) : '');
|
|
55
|
-
const connectedIds = useMemo(
|
|
55
|
+
const connectedIds = useMemo(
|
|
56
|
+
() => new Set((connected || []).map(c => (c.id ? c.id.toLowerCase() : c.name.toLowerCase()))),
|
|
57
|
+
[connected]
|
|
58
|
+
);
|
|
56
59
|
const reconnectIds = useMemo(() => new Set((needsReconnectIds || []).map(id => id.toLowerCase())), [needsReconnectIds]);
|
|
57
60
|
|
|
58
61
|
// React to upstream changes to initialProviderId (e.g., after oauth success)
|