Skip to content

Commit

Permalink
tidy: cleanup logs/comments, move calls
Browse files Browse the repository at this point in the history
  • Loading branch information
mplewis committed Nov 11, 2024
1 parent 4f425f4 commit 675b4b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions web/src/components/EditResponseCell/EditResponseCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@ export const Success = ({
response,
}: CellSuccessProps<GetResponseQuery, GetResponseQueryVariables>) => {
const { editToken, event, ...defaultValues } = response
const [deleting, setDeleting] = useState(false)
const [updateSuccess, setUpdateSuccess] = useState(false)

const formMethods = useForm({
mode: 'onTouched',
Expand Down Expand Up @@ -117,8 +115,9 @@ export const Success = ({
},
})

const [deleting, setDeleting] = useState(false)
const [updateSuccess, setUpdateSuccess] = useState(false)
const loading = saving || deleting
// if (formState.isDirty) setUpdateSuccess(false)

return (
<>
Expand Down
1 change: 0 additions & 1 deletion web/src/components/NewResponseForm/NewResponseForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ const NewResponseForm = (props: Props) => {
onSubmit={(data: FormValues) => {
if (!data.email) throw new Error('Email is required')
const input = { ...data, email: data.email }
console.log(input)
create({ variables: { eventId: event.id, input } })
}}
/>
Expand Down

0 comments on commit 675b4b6

Please sign in to comment.