Skip to content

Commit

Permalink
Update ReportScreen.js
Browse files Browse the repository at this point in the history
  • Loading branch information
janicduplessis authored Oct 26, 2023
1 parent fb0899f commit 6007e60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/home/ReportScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,14 +182,14 @@ function ReportScreen({
const isTopMostReportId = currentReportID === getReportID(route);
const didSubscribeToReportLeavingEvents = useRef(false);

const onNavigationMenuButtonClicked = useCallback(() => {
const goBack = useCallback(() => {
Navigation.goBack(ROUTES.HOME, false, true);
}, []);

let headerView = (
<HeaderView
reportID={reportID}
onNavigationMenuButtonClicked={onNavigationMenuButtonClicked}
onNavigationMenuButtonClicked={goBack}
personalDetails={personalDetails}
report={report}
/>
Expand Down

0 comments on commit 6007e60

Please sign in to comment.