Keep only non-empty micE/comment

This commit is contained in:
Adam Goldsmith 2019-07-13 09:07:18 -04:00
parent a7455677de
commit 2d9233fabb

View File

@ -85,8 +85,8 @@ export default {
acc.lastVoltage = message.data.analog[0] / 10;
acc.lastTemperature = message.data.analog[1];
}
acc.lastMicE = message.data.mice;
acc.lastComment = message.data.comment;
acc.lastMicE = message.data.mice || acc.lastMicE;
acc.lastComment = message.data.comment || acc.lastComment;
}
return acc;
}, {})