From 6ec629fdcdbdb58a1414b412b744cbf8dfb0cf51 Mon Sep 17 00:00:00 2001 From: Liordino Neto Date: Tue, 27 Oct 2020 18:32:18 -0300 Subject: [PATCH] fix: wrong property was being used to determine if a tx was cash-in or cash-out on the transactions page, resulting in wrong cash-out status on the page --- new-lamassu-admin/src/pages/Transactions/helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/new-lamassu-admin/src/pages/Transactions/helper.js b/new-lamassu-admin/src/pages/Transactions/helper.js index 91c0a7b9..fe15eb73 100644 --- a/new-lamassu-admin/src/pages/Transactions/helper.js +++ b/new-lamassu-admin/src/pages/Transactions/helper.js @@ -14,7 +14,7 @@ const getCashInStatus = it => { } const getStatus = it => { - if (it.class === 'cashOut') { + if (it.txClass === 'cashOut') { return getCashOutStatus(it) } return getCashInStatus(it)