Merge development (#86)

This commit is contained in:
John Wu
2021-09-13 09:15:20 -07:00
committed by GitHub
parent 74eb2707a3
commit 680280dbf2
32 changed files with 465 additions and 466 deletions

View File

@@ -49,16 +49,16 @@ const SendCommand = ({ vins }) => {
} else {
setMessage(`Sent command to ${vins.length} cars`);
}
} catch (e) {
setMessage(e.message);
logger.error(e.stack);
} catch (error) {
setMessage(error.message);
logger.error(error.stack);
}
};
const getParameters = (command) => {
const getParameters = (cmd) => {
for (let i = 0, len = commands.length; i < len; i += 1) {
const item = commands[i];
if (item.value === command) {
if (item.value === cmd) {
if (!item.parameters) {
break;
}