Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
timomeh committed Feb 26, 2024
1 parent e6b3d90 commit d632229
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/PortingEmbed/PortingForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ export function PortingForm({ porting, onValidationChange, onSubmit }: Props) {

return (
<Form
id="gigsPortingEmbedForm"
id="gigsPortingEmbedForm" // TODO: make customizable
role="form"
shouldDirty // only include changed fields in the onSubmit handler
onSubmit={(data) => {
const sanitizedData = sanitizeSubmitData(data)
return onSubmit(sanitizedData)
}}
shouldDirty
>
<Field name="accountNumber" validate={[required('Please enter')]}>
{(field, props) => (
Expand Down

0 comments on commit d632229

Please sign in to comment.