Selaa lähdekoodia

fix(report): pass correct patient name to service instead of former name in diagnostic report

sw 3 viikkoa sitten
vanhempi
commit
c00a585f7e
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/states/patient/DiagnosticReport/saveReportThunk.ts

+ 1 - 1
src/states/patient/DiagnosticReport/saveReportThunk.ts

@@ -9,7 +9,7 @@ export const saveReportThunk = createAsyncThunk(
     const state = getState() as RootState;
     const report = {
       headers: {
-        name: state.baseInfo.usedName,
+        name: state.baseInfo.patientName,
         sex: state.baseInfo.gender,
         age: state.baseInfo.age,
         medical_record_number: state.baseInfo.patientNo,