From 9d1f3b8760147459d445212b2263c94599ff3bbe Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Mon, 11 Dec 2023 11:16:36 -0700 Subject: [PATCH] do not invite users for distance requests --- .../MoneyTemporaryForRefactorRequestParticipantsSelector.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pages/iou/request/MoneyTemporaryForRefactorRequestParticipantsSelector.js b/src/pages/iou/request/MoneyTemporaryForRefactorRequestParticipantsSelector.js index fcc524b9b990..95fa64723737 100644 --- a/src/pages/iou/request/MoneyTemporaryForRefactorRequestParticipantsSelector.js +++ b/src/pages/iou/request/MoneyTemporaryForRefactorRequestParticipantsSelector.js @@ -243,7 +243,10 @@ function MoneyTemporaryForRefactorRequestParticipantsSelector({ false, {}, [], - true, + + // We don't want the user to be able to invite individuals when they are in the "Distance request" flow for now. + // This functionality is being built here: https://github.com/Expensify/App/issues/23291 + iouRequestType !== CONST.IOU.REQUEST_TYPE.DISTANCE, true, ); setNewChatOptions({