From 526120e3b0bcdade8d6cbc94b6b2436a079f9cfb Mon Sep 17 00:00:00 2001 From: dukenv0307 Date: Thu, 28 Dec 2023 14:54:10 +0700 Subject: [PATCH 1/3] Add fallback value for name field fix: lint --- ios/Podfile.lock | 2 +- src/pages/iou/request/step/IOURequestStepWaypoint.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 318d62f0a944..c4356daffa11 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -1348,4 +1348,4 @@ SPEC CHECKSUMS: PODFILE CHECKSUM: c403784ee1fdf281bcc552696504207f3022cb66 -COCOAPODS: 1.12.1 +COCOAPODS: 1.12.1 \ No newline at end of file diff --git a/src/pages/iou/request/step/IOURequestStepWaypoint.js b/src/pages/iou/request/step/IOURequestStepWaypoint.js index dc5b9f7d6275..885106d227fe 100644 --- a/src/pages/iou/request/step/IOURequestStepWaypoint.js +++ b/src/pages/iou/request/step/IOURequestStepWaypoint.js @@ -140,7 +140,7 @@ function IOURequestStepWaypoint({ lat: null, lng: null, address: waypointValue, - name: values.name, + name: values.name || null, }; saveWaypoint(waypoint); } From 5e1c23b3cb75a36122501cf349ffbd4c1858bc81 Mon Sep 17 00:00:00 2001 From: dukenv0307 Date: Thu, 28 Dec 2023 15:17:38 +0700 Subject: [PATCH 2/3] fix lint --- ios/Podfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/Podfile.lock b/ios/Podfile.lock index c4356daffa11..318d62f0a944 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -1348,4 +1348,4 @@ SPEC CHECKSUMS: PODFILE CHECKSUM: c403784ee1fdf281bcc552696504207f3022cb66 -COCOAPODS: 1.12.1 \ No newline at end of file +COCOAPODS: 1.12.1 From 84d47b4d1bfc82db98a7d237fa12c8059054a7f3 Mon Sep 17 00:00:00 2001 From: dukenv0307 Date: Thu, 28 Dec 2023 15:23:31 +0700 Subject: [PATCH 3/3] 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));