fix: cashout empty table image and machine status loading

This commit is contained in:
José Oliveira 2021-03-15 21:20:47 +00:00 committed by Josh Harvey
parent 4b2c3a3b47
commit 04c8213430
2 changed files with 3 additions and 2 deletions

View file

@ -116,7 +116,7 @@ const CashOut = ({ name: SCREEN_KEY }) => {
disableRowEdit={R.compose(R.not, R.path(['active']))}
elements={getElements(machines, locale)}
/>
{R.isEmpty(config) && <EmptyTable message="No machines so far" />}
{R.isEmpty(machines) && <EmptyTable message="No machines so far" />}
{wizard && (
<Wizard
machine={R.find(R.propEq('deviceId', wizard))(machines)}

View file

@ -43,7 +43,7 @@ const MachineStatus = () => {
const classes = useStyles()
const { state } = useLocation()
const addedMachineId = state?.id
const { data: machinesResponse, refetch } = useQuery(GET_MACHINES)
const { data: machinesResponse, refetch, loading } = useQuery(GET_MACHINES)
const elements = [
{
@ -103,6 +103,7 @@ const MachineStatus = () => {
</div>
</div>
<DataTable
loading={loading}
elements={elements}
data={machines}
Details={InnerMachineDetailsRow}