Skip to content

Commit

Permalink
Merge pull request #41409 from bernhardoj/fix/40913-navigate-to-ws-ch…
Browse files Browse the repository at this point in the history
…at-immediately-after-share-tracked-expense

Navigate to the workspace chat immediately after share a track expense
  • Loading branch information
thienlnam authored May 1, 2024
2 parents a7db226 + ab6d6e2 commit a0f13ee
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/libs/actions/IOU.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3541,11 +3541,10 @@ function trackExpense(
API.write(WRITE_COMMANDS.TRACK_EXPENSE, parameters, onyxData);
}
}
Navigation.dismissModal(activeReportID);

if (action === CONST.IOU.ACTION.SHARE) {
Navigation.dismissModal();
Navigation.navigate(ROUTES.ROOM_INVITE.getRoute(activeReportID ?? '', CONST.IOU.SHARE.ROLE.ACCOUNTANT));
} else {
Navigation.dismissModal(activeReportID);
}

Report.notifyNewAction(activeReportID, payeeAccountID);
Expand Down

0 comments on commit a0f13ee

Please sign in to comment.