Fix logic

check if it is var1 is not necessary because telegram only needs strings and no numbers
pull/1081/head
nils1323 2021-09-06 17:37:43 +02:00 committed by GitHub
parent 5a0639a14e
commit e764f639d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -282,7 +282,7 @@ export default {
this.notifier.form.forEach((f) => {
let field = f.field.toLowerCase()
let val = this.notifier[field]
if (this.isNumeric(val) && (this.form.method!='telegram' && field != 'var1')) {
if (this.isNumeric(val) && this.form.method!='telegram') {
val = parseInt(val)
}
this.form[field] = val
@ -304,7 +304,7 @@ export default {
this.notifier.form.forEach((f) => {
let field = f.field.toLowerCase()
let val = this.notifier[field]
if (this.isNumeric(val) && (this.form.method!='telegram' && field != 'var1')) {
if (this.isNumeric(val) && this.form.method!='telegram') {
val = parseInt(val)
}
this.form[field] = val