summaryrefslogtreecommitdiff
path: root/src/services/transfers/TransferForm.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/services/transfers/TransferForm.tsx')
-rw-r--r--src/services/transfers/TransferForm.tsx1
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">