Skip to content

Commit

Permalink
Fix typecheck errors
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-jeremy committed Apr 4, 2024
1 parent f7c6ff5 commit 696563e
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function BudgetMenu({
}: BudgetMenuProps) {
const isReportBudgetEnabled = useFeatureFlag('reportBudget');

const onMenuSelect = name => {
const onMenuSelect = (name: string) => {
switch (name) {
// case 'edit-mode':
// onEditMode?.(true);
Expand All @@ -94,10 +94,12 @@ function BudgetMenu({
name: 'toggle-hidden-categories',
text: 'Toggle hidden categories',
},
isReportBudgetEnabled && {
name: 'switch-budget-type',
text: 'Switch budget type',
},
isReportBudgetEnabled
? {
name: 'switch-budget-type',
text: 'Switch budget type',
}
: undefined,
]}
/>
);
Expand Down

0 comments on commit 696563e

Please sign in to comment.