condition added replace

This commit is contained in:
Burak Civan 2022-12-23 10:47:33 +03:00
parent ab88fe413c
commit ceee259160

View File

@ -820,7 +820,10 @@ const app = new Vue({
if (newVal != '' && newVal.search('^(?=.*?[0-9])[0-9.,]+$') !== 0) { if (newVal != '' && newVal.search('^(?=.*?[0-9])[0-9.,]+$') !== 0) {
this.form.discount = oldVal; this.form.discount = oldVal;
this.form.discount.replace(',', '.');
if (Number(newVal) == null) {
this.form.discount.replace(',', '.');
}
return; return;
} }