Friend info is returned as 'Undefined', and Linkto:user.userFriends._id is linking to host:/undefined.
Possible solution to utilize useMemo to get all user.userFriends on load and then GET request all relevant friend User data (_id, firstname, lastname, etc.) to correctly populate the button/link info.
Friend info is returned as 'Undefined', and Linkto:user.userFriends._id is linking to host:/undefined.
Possible solution to utilize useMemo to get all user.userFriends on load and then GET request all relevant friend User data (_id, firstname, lastname, etc.) to correctly populate the button/link info.