Skip to content

Commit

Permalink
Merge pull request #27917 from ZhenjaHorbach/fix/displays-waypoint-br…
Browse files Browse the repository at this point in the history
…iefly-on-click-on-go-back

App displays waypoint address page briefly on click on Go back to…
  • Loading branch information
chiragsalian authored Sep 26, 2023
2 parents fc0e330 + 944d6ae commit 7a1ac78
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pages/iou/WaypointEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import lodashGet from 'lodash/get';
import {InteractionManager, View} from 'react-native';
import PropTypes from 'prop-types';
import {withOnyx} from 'react-native-onyx';
import {useIsFocused} from '@react-navigation/native';
import {useNavigation} from '@react-navigation/native';
import AddressSearch from '../../components/AddressSearch';
import ScreenWrapper from '../../components/ScreenWrapper';
import FullPageNotFoundView from '../../components/BlockingViews/FullPageNotFoundView';
Expand Down Expand Up @@ -76,7 +76,8 @@ const defaultProps = {
function WaypointEditor({transactionID, route: {params: {iouType = '', waypointIndex = ''} = {}} = {}, transaction, recentWaypoints}) {
const {windowWidth} = useWindowDimensions();
const [isDeleteStopModalOpen, setIsDeleteStopModalOpen] = useState(false);
const isFocused = useIsFocused();
const navigation = useNavigation();
const isFocused = navigation.isFocused();
const {translate} = useLocalize();
const {isOffline} = useNetwork();
const textInput = useRef(null);
Expand Down

0 comments on commit 7a1ac78

Please sign in to comment.