diff --git a/packages/browser-wallet/src/popup/popupX/shared/EditableValue/EditableValue.tsx b/packages/browser-wallet/src/popup/popupX/shared/EditableValue/EditableValue.tsx index 8cc9bf29..07c512a7 100644 --- a/packages/browser-wallet/src/popup/popupX/shared/EditableValue/EditableValue.tsx +++ b/packages/browser-wallet/src/popup/popupX/shared/EditableValue/EditableValue.tsx @@ -8,15 +8,15 @@ export default function useEditableValue(current: string, fallback: string, onNe const onAbort = useCallback(() => { setIsEditing(false); setEdited(current); - }, []); + }, [current]); const onComplete = useCallback(() => { onNewValue(edited.trim()); setIsEditing(false); - }, []); + }, [edited]); const onEdit = useCallback(() => { setEdited(current); setIsEditing(true); - }, []); + }, [current]); const onInputChange = (event: ChangeEvent) => { setEdited(event.target.value); };