diff --git a/src/containers/CashFlow/CashFlowAccounts/CashFlowAccountsActionsBar.tsx b/src/containers/CashFlow/CashFlowAccounts/CashFlowAccountsActionsBar.tsx
index 45c9d1d76..faa61dfbc 100644
--- a/src/containers/CashFlow/CashFlowAccounts/CashFlowAccountsActionsBar.tsx
+++ b/src/containers/CashFlow/CashFlowAccounts/CashFlowAccountsActionsBar.tsx
@@ -71,7 +71,6 @@ function CashFlowAccountsActionsBar({
text={}
onClick={handleAddBankAccount}
/>
-
}
diff --git a/src/containers/FinancialStatements/APAgingSummary/APAgingSummaryHeader.tsx b/src/containers/FinancialStatements/APAgingSummary/APAgingSummaryHeader.tsx
index 564b40b18..1eeecb772 100644
--- a/src/containers/FinancialStatements/APAgingSummary/APAgingSummaryHeader.tsx
+++ b/src/containers/FinancialStatements/APAgingSummary/APAgingSummaryHeader.tsx
@@ -15,6 +15,8 @@ import withAPAgingSummary from './withAPAgingSummary';
import withAPAgingSummaryActions from './withAPAgingSummaryActions';
import { transformToForm, compose } from '@/utils';
+import { useFeatureCan } from '@/hooks/state';
+import { Features } from '@/constants';
/**
* AP Aging Summary Report - Drawer Header.
@@ -68,11 +70,14 @@ function APAgingSummaryHeader({
const handleCancelClick = () => {
toggleFilterDrawerDisplay(false);
};
-
// Handle the drawer closing.
const handleDrawerClose = () => {
toggleFilterDrawerDisplay(false);
};
+ // Detarmines the feature whether is enabled.
+ const { featureCan } = useFeatureCan();
+
+ const isBranchesFeatureCan = featureCan(Features.Branches);
return (
}
panel={}
/>
- }
- panel={}
- />
+ {isBranchesFeatureCan && (
+ }
+ panel={}
+ />
+ )}