fix: wip use flat config
This commit is contained in:
parent
8f4ee4da0a
commit
7cf82a407e
1 changed files with 4 additions and 1 deletions
|
|
@ -100,8 +100,11 @@ const Cashboxes = () => {
|
||||||
setMachines(
|
setMachines(
|
||||||
data.machines.map(m => ({
|
data.machines.map(m => ({
|
||||||
...m,
|
...m,
|
||||||
|
// TODO: move this to the new flat config style
|
||||||
currency: data.config.fiatCurrency ?? { code: 'N/D' },
|
currency: data.config.fiatCurrency ?? { code: 'N/D' },
|
||||||
denominations: (data.config.cashOutDenominations ?? {})[m.deviceId]
|
denominations: (data.config.cashOutDenominations ?? {})[
|
||||||
|
m.deviceId
|
||||||
|
] || { top: 11111, bottom: 22222 }
|
||||||
}))
|
}))
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue