fix: wip use flat config

This commit is contained in:
Mauricio Navarro Miranda 2020-04-24 02:27:11 -05:00
parent 8f4ee4da0a
commit 7cf82a407e

View file

@ -100,8 +100,11 @@ const Cashboxes = () => {
setMachines(
data.machines.map(m => ({
...m,
// TODO: move this to the new flat config style
currency: data.config.fiatCurrency ?? { code: 'N/D' },
denominations: (data.config.cashOutDenominations ?? {})[m.deviceId]
denominations: (data.config.cashOutDenominations ?? {})[
m.deviceId
] || { top: 11111, bottom: 22222 }
}))
)
})