From 84d47b4d1bfc82db98a7d237fa12c8059054a7f3 Mon Sep 17 00:00:00 2001 From: dukenv0307 Date: Thu, 28 Dec 2023 15:23:31 +0700 Subject: [PATCH] fix: add fallback name in select waypoint --- src/pages/iou/request/step/IOURequestStepWaypoint.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/iou/request/step/IOURequestStepWaypoint.js b/src/pages/iou/request/step/IOURequestStepWaypoint.js index 885106d227fe..4f429460af0a 100644 --- a/src/pages/iou/request/step/IOURequestStepWaypoint.js +++ b/src/pages/iou/request/step/IOURequestStepWaypoint.js @@ -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));