fix: filter join requests to only show pending status

Previously approved/rejected requests were still showing in the list.
Now only pending requests are displayed.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Maulana Sodiqin
2025-11-25 21:58:15 +07:00
co-authored by Claude
parent ab744b411d
commit 083a912e91
+1
View File
@@ -372,6 +372,7 @@ export const useTeamJoinRequests = (teamId: string, enabled = true) => {
user:users(id, email, fullname, avatar)
`)
.eq('team_id', teamId)
.eq('status', 'pending')
.order('created_at', { ascending: false });
if (error) {