diff --git a/src/common/cashflowOptions.js b/src/common/cashflowOptions.js index 93e30ebf4..182020b26 100644 --- a/src/common/cashflowOptions.js +++ b/src/common/cashflowOptions.js @@ -18,7 +18,7 @@ export const addMoneyIn = [ export const addMoneyOut = [ { name: intl.get('cash_flow.owner_drawings'), - value: 'onwers_drawing', + value: 'OwnerDrawing', }, { name: intl.get('cash_flow.expenses'), diff --git a/src/containers/CashFlow/CashFlowAccounts/CashflowAccountsGrid.js b/src/containers/CashFlow/CashFlowAccounts/CashflowAccountsGrid.js index 5f59883af..cdb7a897b 100644 --- a/src/containers/CashFlow/CashFlowAccounts/CashflowAccountsGrid.js +++ b/src/containers/CashFlow/CashFlowAccounts/CashflowAccountsGrid.js @@ -57,21 +57,6 @@ function CashflowBankAccount({ account, }) { - // const [ - // bindMenu, - // bindMenuItem, - // useContextTrigger, - // { coords, setVisible, isVisible }, - // ] = useContextMenu(); - - // const [bindTrigger] = useContextTrigger({ - // collect: () => 'Title', - // }); - - // const handleClose = React.useCallback(() => { - // setVisible(false); - // }, [setVisible]); - // Handle view detail account. const handleViewClick = () => { openDrawer('account-drawer', { accountId: account.id }); @@ -126,7 +111,6 @@ function CashflowBankAccount({ to={`/cashflow-accounts/${account.id}/transactions`} > { switch (accountType) { - case 'onwers_drawing': + case 'OwnerDrawing': return ; case 'other_expense':