Skip to content

Commit

Permalink
Improved: code for unused arguments, and typo in toast message (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
amansinghbais committed Nov 30, 2023
1 parent 6df1ce5 commit 72bb6ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/FacilityGeoPointModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export default defineComponent({
throw resp.data
}
} catch(err) {
showToast(translate("Failed to generate latitude and Longitude."))
showToast(translate("Failed to generate latitude and longitude."))
logger.error(err)
}
},
Expand Down
7 changes: 3 additions & 4 deletions src/views/FacilityDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -561,16 +561,15 @@ export default defineComponent({
return popover.present()
},
async openLatLongPopover(ev: Event, store: any) {
async openLatLongPopover(event: Event) {
const popover = await popoverController.create({
component: GeoPointPopover,
componentProps: { facilityId: this.facilityId, isRegenerationRequired: this.isRegenerationRequired },
event: ev,
event,
showBackdrop: false
});
popover.onDidDismiss().then(async() => {
await this.fetchFacilityPrimaryMember()
await this.fetchPostalCodeByGeoPoints()
})
Expand Down Expand Up @@ -816,7 +815,7 @@ export default defineComponent({
},
async revokePrimaryStatusFromStore() {
try {
const resp = await FacilityService.updateFacilityToGroup({
await FacilityService.updateFacilityToGroup({
"facilityId": this.facilityId,
"facilityGroupId": this.primaryMember.facilityGroupId,
"fromDate": this.primaryMember.fromDate,
Expand Down

0 comments on commit 72bb6ce

Please sign in to comment.