diff --git a/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.js b/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.js index be8a43b1a483..faf9a7c53cf8 100644 --- a/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.js +++ b/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.js @@ -280,6 +280,23 @@ function FloatingActionButtonAndPopover(props) { text: translate('sidebarScreen.fabNewChat'), onSelected: () => interceptAnonymousUser(Report.startNewChat), }, + ...(canUseTrackExpense + ? [ + { + icon: Expensicons.DocumentPlus, + text: translate('iou.trackExpense'), + onSelected: () => + interceptAnonymousUser(() => + IOU.startMoneyRequest( + CONST.IOU.TYPE.TRACK_EXPENSE, + // When starting to create a track expense from the global FAB, we need to retrieve selfDM reportID. + // If it doesn't exist, we generate a random optimistic reportID and use it for all of the routes in the creation flow. + ReportUtils.findSelfDMReportID() || ReportUtils.generateReportID(), + ), + ), + }, + ] + : []), { icon: Expensicons.MoneyCircle, text: translate('iou.requestMoney'), @@ -306,23 +323,6 @@ function FloatingActionButtonAndPopover(props) { ), ), }, - ...(canUseTrackExpense - ? [ - { - icon: Expensicons.DocumentPlus, - text: translate('iou.trackExpense'), - onSelected: () => - interceptAnonymousUser(() => - IOU.startMoneyRequest( - CONST.IOU.TYPE.TRACK_EXPENSE, - // When starting to create a track expense from the global FAB, we need to retrieve selfDM reportID. - // If it doesn't exist, we generate a random optimistic reportID and use it for all of the routes in the creation flow. - ReportUtils.findSelfDMReportID() || ReportUtils.generateReportID(), - ), - ), - }, - ] - : []), { icon: Expensicons.Task, text: translate('newTaskPage.assignTask'),