Explorar el Código

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

sw hace 3 semanas
padre
commit
c00a585f7e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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,