diff options
Diffstat (limited to 'src/services/transfers')
-rw-r--r-- | src/services/transfers/TransferForm.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/services/transfers/TransferForm.tsx b/src/services/transfers/TransferForm.tsx index a10630a..6092aa8 100644 --- a/src/services/transfers/TransferForm.tsx +++ b/src/services/transfers/TransferForm.tsx @@ -16,6 +16,7 @@ const TransferForm: React.FC<FormikProps<Transfer>> = ({ setFieldValue, values } if (!values.date) setFieldValue('date', moment().format('YYYY-MM-DD')); if (!values.contractorId && contractors?.length) setFieldValue('contractorId', contractors[0]._id); + if (!values.accountId && accounts?.length) setFieldValue('accountId', accounts[0]._id); return ( <Form id="form"> |