From 173ffcc4cd0bfd211514ae39023854317bc6d571 Mon Sep 17 00:00:00 2001 From: Marc Glasser Date: Fri, 25 Mar 2022 03:54:38 -1000 Subject: [PATCH] Merge pull request #8314 from rushatgabhane/fix-8308 IOU - Fix Infinite loading spinner on split bill with invalid phone number (cherry picked from commit 3f6396c3552509815455cc4498517414ddb398da) --- src/libs/actions/IOU.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libs/actions/IOU.js b/src/libs/actions/IOU.js index 686cb51e15e0..b7ce3d7c2e34 100644 --- a/src/libs/actions/IOU.js +++ b/src/libs/actions/IOU.js @@ -138,6 +138,10 @@ function createIOUSplit(params) { emailList: _.map(params.splits, participant => participant.email).join(','), }) .then((response) => { + if (response.jsonCode !== 200) { + return response; + } + chatReportID = response.reportID; return API.CreateIOUSplit({ ...params,