Skip to content

Commit

Permalink
removed comment
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-schwartz-k committed Jul 24, 2023
1 parent af1a60f commit 11a570f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/components/secretDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 11a570f

Please sign in to comment.