Skip to content

Commit

Permalink
chore: use both feature flags
Browse files Browse the repository at this point in the history
  • Loading branch information
UnderKoen committed Nov 12, 2024
1 parent 3e21feb commit 41d9b14
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,9 @@ function Layout({ children, isEditing, menuItems, onMenuSelect }: LayoutProps) {
const [menuOpen, setMenuOpen] = useState<null | 'context' | 'button'>(null);
const [crossOffset, setCrossOffset] = useState(0);
const [offset, setOffset] = useState(0);
const reportBudgetEnabled = useFeatureFlag('reportBudget');
const contextMenusEnabled =
useFeatureFlag('contextMenus') && useFeatureFlag('reportBudget');
useFeatureFlag('contextMenus') && reportBudgetEnabled;

const isContextMenu = menuOpen === 'context';

Expand Down

0 comments on commit 41d9b14

Please sign in to comment.