Commit 6da99304be09f6e3b4751398a7527f87456cae5d

Authored by Vu Bui
1 parent 676d0d5f83
Exists in master

update

Showing 1 changed file with 9 additions and 2 deletions Side-by-side Diff

... ... @@ -179,6 +179,13 @@ function BookingWizard(props) {
179 179 setRequestHelpID(res?.data?.id)
180 180 localStorage.setItem('request_help_id',res?.data?.id)
181 181 dispatch({type:'WB_REQUEST_HELP_ID', payload:res?.data?.id})
  182 + if(commonStore?.userProfile?.patient_case === null) {
  183 + dispatch({ type: 'WB_GROUP_CHAT', payload: res?.data?.group_chat})
  184 + localStorage.setItem('groupChat', JSON.stringify(res?.data?.group_chat))
  185 + //close booking and open chat
  186 + // dispatch({type:'BW_SHOW_BOOKING_MODAL', payload: false})
  187 + // dispatch({type:'BW_SHOW_CHAT', payload: true})
  188 + }
182 189 }
183 190  
184 191 }
... ... @@ -202,10 +209,10 @@ function BookingWizard(props) {
202 209 {commonStore?.hasBooked === true ? <span>YOUR SERVICE</span> : <span>Select your services</span>}
203 210 </div>
204 211 <div className="bw-col-right">
205   - <div className="bw-btn bw-btn-primary">
  212 + {/* <div className="bw-btn bw-btn-primary">
206 213 <i className="bw-icon-calling"></i>
207 214 Get Help
208   - </div>
  215 + </div> */}
209 216 <div className="bw-btn bw-btn-primary bw-ml-15" onClick={()=> handleRequestHelp('INCOMPLETE_BOOKING', 1)}>
210 217 <i className="bw-icon-Call-Center"></i>
211 218 Request Help