Skip to content

Commit 8733b36

Browse files
committed
sendUserLocationToBackend event kebab case
1 parent 439582b commit 8733b36

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

frontend/src/components/app/onboarding/Location.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export default {
5555
},
5656
},
5757
mounted() {
58-
this.bus.$on('sendUserLocationToBackend', this.sendLocation);
58+
this.bus.$on('send-user-location-to-backend', this.sendLocation);
5959
},
6060
};
6161
</script>

frontend/src/views/app/Onboarding.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@
9595

9696
<script>
9797
/* eslint-disable prefer-const */
98-
/* eslint-disable vue/custom-event-name-casing */
9998
import Introduction from '@/components/app/onboarding/Introduction.vue';
10099
import SingleChoice from '@/components/app/onboarding/SingleChoice.vue';
101100
import MultipleChoice from '@/components/app/onboarding/MultipleChoice.vue';
@@ -135,7 +134,7 @@ export default {
135134
async nextSlide() {
136135
if (this.slideCurrent === this.slideCount) {
137136
this.slideCurrent += 1;
138-
await this.bus.$emit('sendUserLocationToBackend');
137+
await this.bus.$emit('send-user-location-to-backend');
139138
await this.$http.post('/profile/complete', this.userData);
140139
const recommendationsRequest = await this.$http.get('/recommendations');
141140
const recommendationsFromSettingUp = recommendationsRequest.data.recommendations;

0 commit comments

Comments
 (0)