From fd8a51849002c7270a9055120ab1718c4275de94 Mon Sep 17 00:00:00 2001 From: Alberto Date: Mon, 12 Dec 2022 16:31:53 +0100 Subject: [PATCH] Check hasOutstandingIOU in money requests --- src/libs/actions/IOU.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/actions/IOU.js b/src/libs/actions/IOU.js index 3eb215e1303e..c6c5f9f8c23e 100644 --- a/src/libs/actions/IOU.js +++ b/src/libs/actions/IOU.js @@ -67,7 +67,7 @@ function requestMoney(report, amount, currency, recipientEmail, participant, com isNewChat = true; } let iouReport; - if (chatReport.iouReportID) { + if (chatReport.hasOutstandingIOU && chatReport.iouReportID) { iouReport = IOUUtils.updateIOUOwnerAndTotal( iouReports[`${ONYXKEYS.COLLECTION.REPORT}${chatReport.iouReportID}`], recipientEmail,