Fix profile Connect stats TypeScript for mutual matches shape.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
cc05691e9a
commit
a62cf057e8
@ -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]) => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user