check only response code

This commit is contained in:
jb-alvarado 2021-04-08 09:31:50 +02:00
parent 4e90fb70fd
commit e70c58a3b3

View File

@ -413,7 +413,7 @@ export default {
channel: this.configGui[this.configID].id
})
if (response.data && response.data.status.Success && response.data.status.Success === '0 Success') {
if (response.data && response.data.status.Success && response.data.status.Success.split(' ')[0] === '0') {
this.success = true
} else {
this.failed = true