From 0cc420546b7f8766c174ae1930e134823ffcd1ff Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Fri, 2 Aug 2024 10:50:58 +0800 Subject: [PATCH] add comment --- src/libs/actions/IOU.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libs/actions/IOU.ts b/src/libs/actions/IOU.ts index c5067aeb682..885ee93b186 100644 --- a/src/libs/actions/IOU.ts +++ b/src/libs/actions/IOU.ts @@ -712,6 +712,9 @@ function buildOnyxDataForMoneyRequest( value: { pendingAction: null, pendingFields: clearedPendingFields, + // The routes contains the distance in meters. Clearing the routes ensures we use the distance + // in the correct unit stored under the transaction customUnit once the request is created. + // The route is also not saved in the backend, so we can't rely on it. routes: null, }, },