From 6da99304be09f6e3b4751398a7527f87456cae5d Mon Sep 17 00:00:00 2001 From: VuBui Date: Thu, 16 Sep 2021 15:07:14 +0700 Subject: [PATCH] update --- index.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 8ab688f..3eb224f 100644 --- a/index.js +++ b/index.js @@ -179,6 +179,13 @@ function BookingWizard(props) { setRequestHelpID(res?.data?.id) localStorage.setItem('request_help_id',res?.data?.id) dispatch({type:'WB_REQUEST_HELP_ID', payload:res?.data?.id}) + if(commonStore?.userProfile?.patient_case === null) { + dispatch({ type: 'WB_GROUP_CHAT', payload: res?.data?.group_chat}) + localStorage.setItem('groupChat', JSON.stringify(res?.data?.group_chat)) + //close booking and open chat + // dispatch({type:'BW_SHOW_BOOKING_MODAL', payload: false}) + // dispatch({type:'BW_SHOW_CHAT', payload: true}) + } } } @@ -202,10 +209,10 @@ function BookingWizard(props) { {commonStore?.hasBooked === true ? YOUR SERVICE : Select your services}
-
+ {/*
Get Help -
+
*/}
handleRequestHelp('INCOMPLETE_BOOKING', 1)}> Request Help -- 2.14.0