fix: update API endpoint for deleting friend requests in useUserDetails hook

This commit is contained in:
Moyasee
2026-01-03 21:01:39 +02:00
parent 590e09a8c3
commit b2bffeb2b0

View File

@@ -111,7 +111,7 @@ export function useUserDetails() {
);
const undoFriendship = (userId: string) =>
window.electron.hydraApi.delete(`/profile/friends/${userId}`);
window.electron.hydraApi.delete(`/profile/friend-requests/${userId}`);
const blockUser = (userId: string) =>
window.electron.hydraApi.post(`/users/${userId}/block`);