diff --git a/new-lamassu-admin/src/pages/Transactions/helper.js b/new-lamassu-admin/src/pages/Transactions/helper.js index 2b28c6a9..90f6cf91 100644 --- a/new-lamassu-admin/src/pages/Transactions/helper.js +++ b/new-lamassu-admin/src/pages/Transactions/helper.js @@ -5,10 +5,6 @@ const getCashOutStatus = it => { return 'Pending' } -const getCashOutStatusDetails = it => { - return it.hasError ? it.hasError : null -} - const getCashInStatus = it => { if (it.operatorCompleted) return 'Cancelled' if (it.hasError) return 'Error' @@ -17,10 +13,6 @@ const getCashInStatus = it => { return 'Pending' } -const getCashInStatusDetails = it => { - return it.hasError ? it.hasError : null -} - const getStatus = it => { if (it.txClass === 'cashOut') { return getCashOutStatus(it) @@ -29,9 +21,7 @@ const getStatus = it => { } const getStatusDetails = it => { - return it.txClass === 'cashOut' - ? getCashOutStatusDetails(it) - : getCashInStatusDetails(it) + return it.hasError ? it.hasError : null } export { getStatus, getStatusDetails }