fix blank machine name issue

This commit is contained in:
Josh Harvey 2018-03-11 15:06:04 +00:00
parent 1aaabac004
commit ba1fc26944

View file

@ -30,7 +30,7 @@ function getMachineNames (config) {
.then(([machines, config]) => { .then(([machines, config]) => {
const addName = r => { const addName = r => {
const machineScoped = configManager.machineScoped(r.deviceId, config) const machineScoped = configManager.machineScoped(r.deviceId, config)
const name = machineScoped.machineName const name = _.defaultTo('', machineScoped.machineName)
const cashOut = machineScoped.cashOutEnabled const cashOut = machineScoped.cashOutEnabled
return _.assign(r, {name, cashOut}) return _.assign(r, {name, cashOut})