fix: pull up tx details
This commit is contained in:
parent
783e2cf9fc
commit
368d528ee2
1 changed files with 1 additions and 11 deletions
|
|
@ -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 }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue