From b5d867f68d3eb7531d5bf4fb7362970b60f076c2 Mon Sep 17 00:00:00 2001 From: Franco Sanllehi Date: Thu, 1 Apr 2021 14:51:41 -0300 Subject: [PATCH] Check if id is undefined fix #43 --- src_htmlPhone/src/components/Racing/RacingMenu.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src_htmlPhone/src/components/Racing/RacingMenu.vue b/src_htmlPhone/src/components/Racing/RacingMenu.vue index 9cb2470f..3d50a3cd 100644 --- a/src_htmlPhone/src/components/Racing/RacingMenu.vue +++ b/src_htmlPhone/src/components/Racing/RacingMenu.vue @@ -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({ @@ -399,6 +399,8 @@ export default { }) }) break + case 999: + break } }, },