Fix profile Connect stats TypeScript for mutual matches shape.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
eric 2026-09-04 06:53:48 -05:00
parent cc05691e9a
commit a62cf057e8

View File

@ -112,11 +112,11 @@ export default function ProfilePage() {
}),
Promise.all([
api.getMatchLikesReceived(token).catch(() => []),
api.getMutualMatches(token).catch(() => []),
api.getMutualMatches(token).catch(() => ({ items: [] })),
api.getConversations(token).catch(() => []),
]).then(([likes, matches, chats]) => ({
likes: likes.length,
matches: matches.length,
matches: matches.items?.length ?? 0,
chats: chats.length,
})),
]).then(([s, f, v, myMeetups, connectStats]) => {