From bfaf41fe6776ce6136f229819d29065ac5c29021 Mon Sep 17 00:00:00 2001 From: elforjani3 Date: Mon, 16 Nov 2020 18:23:32 +0200 Subject: [PATCH] fix :default currency in make journal form. --- .../containers/Accounting/MakeJournalEntriesHeader.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/client/src/containers/Accounting/MakeJournalEntriesHeader.js b/client/src/containers/Accounting/MakeJournalEntriesHeader.js index 48b8d8894..a2bec082e 100644 --- a/client/src/containers/Accounting/MakeJournalEntriesHeader.js +++ b/client/src/containers/Accounting/MakeJournalEntriesHeader.js @@ -26,7 +26,6 @@ import { import withDialogActions from 'containers/Dialog/withDialogActions'; import withCurrencies from 'containers/Currencies/withCurrencies'; -import withSettings from 'containers/Settings/withSettings'; import { compose } from 'utils'; @@ -41,9 +40,6 @@ function MakeJournalEntriesHeader({ manualJournal, onJournalNumberChanged, - // #withSettings - baseCurrency, - // #withCurrencies currenciesList, @@ -225,7 +221,7 @@ function MakeJournalEntriesHeader({ currenciesList={currenciesList} selectedCurrencyCode={values.currency_code} onCurrencySelected={onItemsSelect('currency_code')} - defaultSelectText={baseCurrency} + defaultSelectText={values.currency_code} /> @@ -236,9 +232,6 @@ function MakeJournalEntriesHeader({ export default compose( withDialogActions, - withSettings(({ organizationSettings }) => ({ - baseCurrency: organizationSettings?.baseCurrency, - })), withCurrencies(({ currenciesList }) => ({ currenciesList, })),