feat: fix setting cash.

This commit is contained in:
elforjani13
2021-10-26 14:33:41 +02:00
parent 0a21c5fa41
commit 2fd78ca1c4
8 changed files with 36 additions and 20 deletions

View File

@@ -1,5 +1,5 @@
import React from 'react';
import { FastField, ErrorMessage } from 'formik';
import { FastField, Field, ErrorMessage } from 'formik';
import {
Classes,
FormGroup,
@@ -112,7 +112,7 @@ function OtherIncomeFormFields({
</Col>
<Col xs={5}>
{/*------------ Transaction number -----------*/}
<FastField name={'transaction_number'}>
<Field name={'transaction_number'}>
{({ form, field, meta: { error, touched } }) => (
<FormGroup
label={<T id={'transaction_number'} />}
@@ -147,7 +147,7 @@ function OtherIncomeFormFields({
</ControlGroup>
</FormGroup>
)}
</FastField>
</Field>
</Col>
</Row>
{/*------------ amount -----------*/}