From 0c9f2b7c9c4e18ced59fb256dfa600db17edb729 Mon Sep 17 00:00:00 2001 From: Dylan Date: Mon, 27 Nov 2023 10:45:55 +0700 Subject: [PATCH 1/3] add name value --- src/pages/iou/WaypointEditor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/iou/WaypointEditor.js b/src/pages/iou/WaypointEditor.js index ecc56fbae80f..241d7d269537 100644 --- a/src/pages/iou/WaypointEditor.js +++ b/src/pages/iou/WaypointEditor.js @@ -144,6 +144,7 @@ function WaypointEditor({route: {params: {iouType = '', transactionID = '', wayp lat: null, lng: null, address: waypointValue, + name: waypointValue }; saveWaypoint(waypoint); } @@ -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); From 609ca3db629a88613a3b06989e7077ffbe61b525 Mon Sep 17 00:00:00 2001 From: Dylan Date: Mon, 27 Nov 2023 11:04:46 +0700 Subject: [PATCH 2/3] fix lint --- src/pages/iou/WaypointEditor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/iou/WaypointEditor.js b/src/pages/iou/WaypointEditor.js index 241d7d269537..4be3ef005a24 100644 --- a/src/pages/iou/WaypointEditor.js +++ b/src/pages/iou/WaypointEditor.js @@ -144,7 +144,7 @@ function WaypointEditor({route: {params: {iouType = '', transactionID = '', wayp lat: null, lng: null, address: waypointValue, - name: waypointValue + name: waypointValue, }; saveWaypoint(waypoint); } From 2783bbf691cdca50acecc89299d7f2dc3e3d14d1 Mon Sep 17 00:00:00 2001 From: Dylan Date: Fri, 1 Dec 2023 10:42:53 +0700 Subject: [PATCH 3/3] update name to null when offline --- src/pages/iou/WaypointEditor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/iou/WaypointEditor.js b/src/pages/iou/WaypointEditor.js index 4be3ef005a24..40c9f2f425a1 100644 --- a/src/pages/iou/WaypointEditor.js +++ b/src/pages/iou/WaypointEditor.js @@ -144,7 +144,7 @@ function WaypointEditor({route: {params: {iouType = '', transactionID = '', wayp lat: null, lng: null, address: waypointValue, - name: waypointValue, + name: null, }; saveWaypoint(waypoint); }