Skip to content

Commit

Permalink
Merge pull request Expensify#31898 from DylanDylann/fix/30837
Browse files Browse the repository at this point in the history
Fix/30837: Add fallback value for name field
  • Loading branch information
Beamanator authored Dec 4, 2023
2 parents 9dbf39d + 9ab958a commit d2056af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/iou/WaypointEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ function WaypointEditor({route: {params: {iouType = '', transactionID = '', wayp
lat: null,
lng: null,
address: waypointValue,
name: null,
};
saveWaypoint(waypoint);
}
Expand All @@ -163,7 +164,7 @@ function WaypointEditor({route: {params: {iouType = '', transactionID = '', wayp
lat: values.lat,
lng: values.lng,
address: values.address,
name: values.name,
name: values.name || null,
};
saveWaypoint(waypoint);

Expand Down

0 comments on commit d2056af

Please sign in to comment.