🆙 Fixed the friends components

This commit is contained in:
duckietm
2026-02-27 13:56:33 +01:00
parent 7216f86e7f
commit 9939e90828
6 changed files with 252 additions and 47 deletions
+1 -1
View File
@@ -193,7 +193,7 @@ const useFriendsState = () =>
{
const index = newValue.findIndex(existing => (existing.requesterUserId === request.requesterUserId));
if(index > 0)
if(index !== -1)
{
newValue[index] = CloneObject(newValue[index]);
newValue[index].populate(request);