mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 06:10:31 +00:00
BC-5 fix: general tab of preferences form submitting.
This commit is contained in:
@@ -4,7 +4,7 @@ import intl from 'react-intl-universal';
|
||||
// Retrieve the setup organization form validation.
|
||||
export const getSetupOrganizationValidation = () =>
|
||||
Yup.object().shape({
|
||||
organizationName: Yup.string()
|
||||
name: Yup.string()
|
||||
.required()
|
||||
.label(intl.get('organization_name_')),
|
||||
location: Yup.string()
|
||||
|
||||
@@ -36,13 +36,13 @@ export default function SetupOrganizationForm({ isSubmitting, values }) {
|
||||
</h3>
|
||||
|
||||
{/* ---------- Organization name ---------- */}
|
||||
<FastField name={'organizationName'}>
|
||||
<FastField name={'name'}>
|
||||
{({ form, field, meta: { error, touched } }) => (
|
||||
<FormGroup
|
||||
label={<T id={'legal_organization_name'} />}
|
||||
className={'form-group--name'}
|
||||
intent={inputIntent({ error, touched })}
|
||||
helperText={<ErrorMessage name={'organizationName'} />}
|
||||
helperText={<ErrorMessage name={'name'} />}
|
||||
>
|
||||
<InputGroup {...field} intent={inputIntent({ error, touched })} />
|
||||
</FormGroup>
|
||||
|
||||
@@ -14,7 +14,7 @@ import { getSetupOrganizationValidation } from './SetupOrganization.schema';
|
||||
|
||||
// Initial values.
|
||||
const defaultValues = {
|
||||
organizationName: '',
|
||||
name: '',
|
||||
location: 'libya',
|
||||
baseCurrency: '',
|
||||
language: 'en',
|
||||
|
||||
Reference in New Issue
Block a user