Merge pull request #1104 from chaotixkilla/fix-cashout-page-crashing-fresh-install

Fix CashOut panel crashing on fresh installs
This commit is contained in:
Rafael Taranto 2022-02-14 16:07:32 +00:00 committed by GitHub
commit 035bc8eb36

View file

@ -61,7 +61,7 @@ const getElements = (machines, locale = {}, classes) => {
{
name: 'id',
header: 'Machine',
width: widthsByNumberOfCassettes[maxNumberOfCassettes].machine,
width: widthsByNumberOfCassettes[maxNumberOfCassettes]?.machine,
view: it => machines.find(({ deviceId }) => deviceId === it).name,
size: 'sm',
editable: false
@ -77,7 +77,7 @@ const getElements = (machines, locale = {}, classes) => {
size: 'sm',
stripe: true,
textAlign: 'right',
width: widthsByNumberOfCassettes[maxNumberOfCassettes].cassette,
width: widthsByNumberOfCassettes[maxNumberOfCassettes]?.cassette,
suffix: fiatCurrency,
bold: bold,
view: it => it,