diff --git a/src/containers/Dialogs/MoneyInDialog/MoneyInForm.js b/src/containers/Dialogs/MoneyInDialog/MoneyInForm.js index bb5676293..3a415384e 100644 --- a/src/containers/Dialogs/MoneyInDialog/MoneyInForm.js +++ b/src/containers/Dialogs/MoneyInDialog/MoneyInForm.js @@ -73,7 +73,7 @@ function MoneyInForm({ const handleFormSubmit = (values, { setSubmitting, setErrors }) => { const form = { ...omit(values, ['currency_code']), - published: submitPayload.publish, + published: true, }; setSubmitting(true); createCashflowTransactionMutate(form) diff --git a/src/containers/Dialogs/MoneyOutDialog/MoneyOutForm.js b/src/containers/Dialogs/MoneyOutDialog/MoneyOutForm.js index 7d6436aaa..4f68f0619 100644 --- a/src/containers/Dialogs/MoneyOutDialog/MoneyOutForm.js +++ b/src/containers/Dialogs/MoneyOutDialog/MoneyOutForm.js @@ -73,7 +73,7 @@ function MoneyOutForm({ const handleFormSubmit = (values, { setSubmitting, setErrors }) => { const form = { ...omit(values, ['currency_code']), - published: submitPayload.publish, + published: true, }; setSubmitting(true); createCashflowTransactionMutate(form)