We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e703a0 commit 6ba240fCopy full SHA for 6ba240f
website/src/lib/users.ts
@@ -95,7 +95,10 @@ export const getBatchFrontendUserIdFromBackendUser = async (users: { username: s
95
const account = externalAccounts.find(
96
(a) => a.provider === users[userIdx].auth_method && a.providerAccountId === users[userIdx].username
97
);
98
- outputIds[userIdx] = account.userId;
+ // TODO check why the account is undefined
99
+ if (account) {
100
+ outputIds[userIdx] = account.userId;
101
+ }
102
});
103
104
return outputIds;
0 commit comments