mirror of
https://github.com/duckietm/Nitro-V3.git
synced 2026-06-20 15:36:18 +00:00
🆙 Fixed the friends components
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user