Skip to content

Commit

Permalink
fix: delete numero form no value
Browse files Browse the repository at this point in the history
  • Loading branch information
MaGOs92 committed Jun 13, 2024
1 parent f445c4e commit 328eff3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ export default function SignalementNumeroDeleteForm({
address,
onSubmit,
}: SignalementNumeroDeleteFormProps) {
const { comment } = signalement.changesRequested

const isSubmitDisabled = useMemo(() => {
return (
JSON.stringify(getInitialSignalement(address, signalement.type)) ===
Expand All @@ -43,6 +45,7 @@ export default function SignalementNumeroDeleteForm({
<textarea
className='fr-input'
name='comment'
value={comment as string}
onChange={(event) =>
onEditSignalement('changesRequested', 'comment')(event.target.value)
}
Expand Down

0 comments on commit 328eff3

Please sign in to comment.