1
0
mirror of https://github.com/franjsco/trackmyd-bot synced 2025-02-19 21:10:50 +01:00

edit template - deviceNotFound

This commit is contained in:
Francesco Esposito 2019-02-22 10:02:51 +01:00
parent 4da9c3390b
commit c7cc900a9a

View File

@ -60,7 +60,12 @@ function templateError(data) {
}
function templateDeviceNotFound(data) {
const msg = `Device _"${data}"_ not found`;
let msg;
if (data) {
msg = `Device _"${data}"_ not found`;
} else {
msg = 'Devices not found';
}
return msg;
}