diff --git a/app/features/sendouq/components/GroupCard.tsx b/app/features/sendouq/components/GroupCard.tsx index e2057ad42..5befe5858 100644 --- a/app/features/sendouq/components/GroupCard.tsx +++ b/app/features/sendouq/components/GroupCard.tsx @@ -321,56 +321,20 @@ function MemberNote({ editable: boolean; }) { const { t } = useTranslation(["common", "q"]); - const fetcher = useFetcher(); const [editing, setEditing] = React.useState(false); - const [value, setValue] = React.useState(note ?? ""); - const startEditing = () => setEditing(true); - const stopEditing = React.useCallback(() => { - setEditing(false); - setValue(note ?? ""); - }, [note]); + const startEditing = () => { + setEditing(true); + }; // when note updates exit editing mode React.useEffect(() => { - stopEditing(); - }, [stopEditing]); - - const newValueLegal = value.length <= SENDOUQ.OWN_PUBLIC_NOTE_MAX_LENGTH; + setEditing(false); + }, [note]); if (editing) { return ( - -