Skip to content

Commit

Permalink
Update selfDMReportID when opening/closing FAB
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioh8010 committed Nov 8, 2024
1 parent 346bb37 commit 257ea89
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ function FloatingActionButtonAndPopover({onHideCreateMenu, onShowCreateMenu}: Fl
};

// eslint-disable-next-line react-compiler/react-compiler, react-hooks/exhaustive-deps
const selfDMReportID = useMemo(() => ReportUtils.findSelfDMReportID(), [isLoading]);
const selfDMReportID = useMemo(() => ReportUtils.findSelfDMReportID(), [isLoading, isCreateMenuActive]);

const expenseMenuItems = useMemo((): PopoverMenuItem[] => {
if (canUseCombinedTrackSubmit) {
Expand Down

0 comments on commit 257ea89

Please sign in to comment.