diff --git a/app/routes/et-members.tsx b/app/routes/et-members.tsx index 2e60207..29af547 100644 --- a/app/routes/et-members.tsx +++ b/app/routes/et-members.tsx @@ -219,7 +219,7 @@ export default function () { const newMemberData = memberData; newMemberData[memberData.findIndex((m) => m.id === id)].points = points; - setMemberData(newMemberData); + setMemberData([...newMemberData]); onClose(); } @@ -379,6 +379,13 @@ export default function () { status: "success", title: "Name changed", }); + + const newMemberData = memberData; + newMemberData[ + memberData.findIndex((m) => m.id === currentModalMember) + ].name = newName; + + setMemberData([...newMemberData]); }} > Update Name