Skip to content

Commit

Permalink
Merge pull request #43744 from Krishna2323/krishna2323/issue/43135
Browse files Browse the repository at this point in the history
fix: Extra spaces are not trimmed in the next page for the routing number and Account number.
  • Loading branch information
iwiznia committed Jun 17, 2024
2 parents 2eb3b48 + 6056f3c commit 59e4f8b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/pages/ReimbursementAccount/BankInfo/substeps/Manual.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import Text from '@components/Text';
import TextInput from '@components/TextInput';
import useAutoFocusInput from '@hooks/useAutoFocusInput';
import useLocalize from '@hooks/useLocalize';
import useReimbursementAccountStepFormSubmit from '@hooks/useReimbursementAccountStepFormSubmit';
import type {SubStepProps} from '@hooks/useSubStep/types';
import useThemeStyles from '@hooks/useThemeStyles';
import * as ValidationUtils from '@libs/ValidationUtils';
Expand Down Expand Up @@ -59,10 +60,16 @@ function Manual({reimbursementAccount, onNext}: ManualProps) {

const shouldDisableInputs = !!(reimbursementAccount?.achData?.bankAccountID ?? '');

const handleSubmit = useReimbursementAccountStepFormSubmit({
fieldIds: STEP_FIELDS,
onNext,
shouldSaveDraft: true,
});

return (
<FormProvider
formID={ONYXKEYS.FORMS.REIMBURSEMENT_ACCOUNT_FORM}
onSubmit={onNext}
onSubmit={handleSubmit}
validate={validate}
submitButtonText={translate('common.next')}
style={[styles.mh5, styles.flexGrow1]}
Expand Down

0 comments on commit 59e4f8b

Please sign in to comment.