From dcf3c8a63e97b239a3bbdba1683671570a6054f9 Mon Sep 17 00:00:00 2001 From: Ayushya Amitabh Date: Sat, 25 Jul 2020 23:07:34 -0400 Subject: [PATCH] v1.5.2/fix updateloading on leave --- app/src/Create.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/src/Create.js b/app/src/Create.js index 4cdbaf5..1818023 100644 --- a/app/src/Create.js +++ b/app/src/Create.js @@ -68,9 +68,13 @@ export default class Create extends Component { partyName: LocalData().partyName, userUid: LocalData().userUid, }; - LeaveRoomApi(data).then((res) => { - this.props.updateLoading(false); - }); + LeaveRoomApi(data) + .then((res) => { + this.props.updateLoading(false); + }) + .catch((err) => { + this.props.updateLoading(false); + }); } } }