From 9973693a86290115dcd3875dcc6528f8f47fc6df Mon Sep 17 00:00:00 2001 From: elforjani13 <39470382+elforjani13@users.noreply.github.com> Date: Sat, 8 Jan 2022 16:59:31 +0200 Subject: [PATCH] BIG-270 Publish and draft cashflow transaction. --- src/containers/Dialogs/MoneyInDialog/MoneyInForm.js | 2 +- src/containers/Dialogs/MoneyOutDialog/MoneyOutForm.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)