Commit 7a6f5a1ffa122e3366d4a065e80b02f2743ff4fb

Authored by Vu Bui
1 parent 7476b87f93
Exists in master

update

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

... ... @@ -157,11 +157,15 @@ function BookingWizard(props) {
157 157 }
158 158  
159 159 const handleRequestHelp = async(type, step) => {
  160 + let dataBooking =null;
  161 + if(localStorage.getItem('bwDataBooking')) {
  162 + dataBooking = JSON.parse(localStorage.getItem('bwDataBooking'))
  163 + }
160 164 let dataPram ={
161 165 "metadata" : {
162 166 "type": type,
163 167 "process_booking": `${step}/4`,
164   - "process_profile": commonStore?.userProfile?.patient_case?.patient?100:0, // has patient profile
  168 + "process_profile": commonStore?.userProfile?.patient_case?.patient?100: step>2 || step ===2 && dataBooking?.profile ? 100: 0, // has patient profile
165 169 "patient_id": commonStore?.userProfile?.patient_id, // has patient id
166 170 "marketing_group_id": localStorage.getItem('marketing_group_id'),
167 171 }