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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kyd-shared-badge",
3
- "version": "0.3.84",
3
+ "version": "0.3.86",
4
4
  "private": false,
5
5
  "main": "./src/index.ts",
6
6
  "module": "./src/index.ts",
@@ -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(() => new Set((connected || []).map(c => c.name.toLowerCase())), [connected]);
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)
package/src/types.ts CHANGED
@@ -37,6 +37,7 @@ export interface AppInstallationInfo {
37
37
  }
38
38
 
39
39
  export interface ConnectedAccount {
40
+ id?: string; // only passed in by recruiter
40
41
  name: string;
41
42
  url?: string;
42
43
  handle?: string;