diff --git a/src/components/HomePage/HomePage.js b/src/components/HomePage/HomePage.js index e51d1a4..9c27938 100644 --- a/src/components/HomePage/HomePage.js +++ b/src/components/HomePage/HomePage.js @@ -291,6 +291,10 @@ export default { const formAggiornata = [...form]; for (const cambio of cambi) { + if (!/^\d+$/.test(cambio.in) || !/^\d+$/.test(cambio.out)) { + this.$waveui.notify("Inserisci solo numeri nei campi", "warning"); + return; + } if (cambio.in === cambio.out) { this.$waveui.notify(`Numero IN e OUT uguali per ${cambio.team}`, "warning"); return;