Fix: Resolve internal server error

This commit is contained in:
gpt-engineer-app[bot]
2025-11-03 02:26:28 +00:00
parent 5a2c72ecd6
commit f6c409fac4
12 changed files with 35 additions and 34 deletions

View File

@@ -67,10 +67,11 @@ export function BlockedUsers() {
const blockedUsersWithProfiles = blocks.map(block => ({
...block,
blocker_id: user.id,
blocked_profile: profiles?.find(p => p.user_id === block.blocked_id)
blocked_profile: profiles?.find(p => p.user_id === block.blocked_id),
reason: block.reason || undefined
}));
setBlockedUsers(blockedUsersWithProfiles);
setBlockedUsers(blockedUsersWithProfiles as UserBlock[]);
logger.info('Blocked users fetched successfully', {
userId: user.id,