Skip to content

Commit

Permalink
Merge pull request #33692 from dukenv0307/fix/33505
Browse files Browse the repository at this point in the history
Add fallback value for name field
  • Loading branch information
arosiclair authored Dec 28, 2023
2 parents d164914 + 84d47b4 commit 2977548
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/iou/request/step/IOURequestStepWaypoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ function IOURequestStepWaypoint({
lat: null,
lng: null,
address: waypointValue,
name: values.name,
name: values.name || null,
};
saveWaypoint(waypoint);
}
Expand All @@ -166,7 +166,7 @@ function IOURequestStepWaypoint({
lat: values.lat,
lng: values.lng,
address: values.address,
name: values.name,
name: values.name || null,
};
Transaction.saveWaypoint(transactionID, pageIndex, waypoint, false);
Navigation.goBack(ROUTES.MONEY_REQUEST_CREATE_TAB_DISTANCE.getRoute(iouType, transactionID, reportID));
Expand Down

0 comments on commit 2977548

Please sign in to comment.