diff --git a/src/components/secretDialog.tsx b/src/components/secretDialog.tsx index 4f86e49..df96ed5 100644 --- a/src/components/secretDialog.tsx +++ b/src/components/secretDialog.tsx @@ -52,7 +52,6 @@ export default function SecretDialog(props: ISecretDialogProps) { const { isOpen, initialValue, handleClose, handleSave } = props const [state, setState] = useState({ ...DefaultFormState, value: initialValue }) - // TODO - ctrl initialValue from parent? useEffect(() => { setState({ ...DefaultFormState, value: initialValue }) }, [isOpen, initialValue])