Hi, iâm having an issue, iâm making a contact system and when i click on âAdd contactâ i get his data but the problem is coming when i try to add another contact, it replaces the old contact. I can 't add 2, 3 or 4 contacts at once inside this array, only 1, i want to know how i can do to fix this problem, here a snippet of my code
<Layout>
<form onSubmit={async (e)=>{
e.preventDefault();
user.set("friendslist", [specificFriend]);
await user.save()
}}>
</Layout>
This state of âspecificFriendsâ return a promise with the exact user when the other user click on âAdd contactâ
But how i said, when i try to add another contact the old contract is replaced for the new one