Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
Check if id is undefined
Browse files Browse the repository at this point in the history
fix #43
  • Loading branch information
DmACKGL committed Apr 1, 2021
1 parent 5450f3d commit b5d867f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src_htmlPhone/src/components/Racing/RacingMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ export default {
const rep = await Modal.CreateModal({ choix })
this.ignoreControls = false
this.$bus.$emit('ignoreControls', false)
switch (rep.id) {
switch (rep.id ?? 999) {
case 0:
this.$phoneAPI.getReponseText({limit: 10, text: this.IntlString('APP_RACING_CREATE_ALIAS')}).then(data => {
Swal.fire({
Expand Down Expand Up @@ -399,6 +399,8 @@ export default {
})
})
break
case 999:
break
}
},
},
Expand Down

0 comments on commit b5d867f

Please sign in to comment.