Skip to content

Commit

Permalink
fix: change bug that double updated and typos
Browse files Browse the repository at this point in the history
  • Loading branch information
NabbeunNabi committed Jan 20, 2025
1 parent 911302e commit 073f884
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions components/ModEditFacilityOrProfessionalTopbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,6 @@ const updateFacilityOrHealthcareProfessional = async () => {
return response
}
// This updates the healthcare professional section values with the data saved in our db
healthcareProfessionalsStore.healthcareProfessionalSectionFields = response.data as HealthcareProfessional
toast.success(t('modEditFacilityOrHPTopbar.healthcareProfessionalUpdatedSuccessfully'))
return response
}
Expand Down
2 changes: 1 addition & 1 deletion components/ModEditHealthcareProfessionalSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
</div>
</div>
<div
v-if="healthcareProfessionalsStore.removedHealthcareProfessionalNames"
v-if="healthcareProfessionalsStore.removedHealthcareProfessionalNames.length"
class="flex flex-col"
>
<div
Expand Down
2 changes: 1 addition & 1 deletion stores/healthcareProfessionalsStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const useHealthcareProfessionalsStore = defineStore(
}

function updateHealthcareProfessionalSectionFields(healthcareProfessional: HealthcareProfessional) {
healthcareProfessionalSectionFields.__typename = healthcareProfessional.__typename
healthcareProfessionalSectionFields.__typename = 'HealthcareProfessional'
healthcareProfessionalSectionFields.acceptedInsurance = healthcareProfessional.acceptedInsurance
healthcareProfessionalSectionFields.createdDate = healthcareProfessional.createdDate
healthcareProfessionalSectionFields.degrees = healthcareProfessional.degrees
Expand Down

0 comments on commit 073f884

Please sign in to comment.