diff --git a/new-lamassu-admin/src/pages/Machines/MachineComponents/Transactions/Transactions.js b/new-lamassu-admin/src/pages/Machines/MachineComponents/Transactions/Transactions.js index 9b1bac05..fe37c323 100644 --- a/new-lamassu-admin/src/pages/Machines/MachineComponents/Transactions/Transactions.js +++ b/new-lamassu-admin/src/pages/Machines/MachineComponents/Transactions/Transactions.js @@ -49,6 +49,7 @@ const GET_TRANSACTIONS = gql` customerIdCardData customerIdCardPhotoPath customerFrontCameraPath + txCustomerPhotoPath customerPhone discount customerId diff --git a/new-lamassu-admin/src/pages/Transactions/DetailsCard.js b/new-lamassu-admin/src/pages/Transactions/DetailsCard.js index 5322a306..ca27a6d1 100644 --- a/new-lamassu-admin/src/pages/Transactions/DetailsCard.js +++ b/new-lamassu-admin/src/pages/Transactions/DetailsCard.js @@ -121,6 +121,8 @@ const DetailsRow = ({ it: tx, timezone }) => { const isCashIn = tx.txClass === 'cashIn' + console.log(tx) + const zip = new JSZip() const [fetchSummary] = useLazyQuery(TX_SUMMARY, { @@ -259,20 +261,25 @@ const DetailsRow = ({ it: tx, timezone }) => { {tx.customerPhone} )} - {tx.customerIdCardPhotoPath && !tx.customerIdCardData && ( - - - - )} + {(tx.customerIdCardPhotoPath || tx.txCustomerPhotoPath) && + !tx.customerIdCardData && ( + + + + )} {tx.customerIdCardData && (