fix: date parsing and formatting

This commit is contained in:
Sérgio Salgado 2021-11-26 01:37:25 +00:00
parent 1cb715332a
commit bb189decae
7 changed files with 38 additions and 21 deletions

View file

@ -50,10 +50,9 @@ const TransactionsList = ({ customer, data, loading, locale }) => {
size: 142,
value:
!R.isNil(timezone) &&
ifNotNull(
customer.lastActive,
formatDate(customer.lastActive, timezone, 'yyyy-MM-d')
)
((customer.lastActive &&
formatDate(customer.lastActive, timezone, 'yyyy-MM-d')) ??
'')
},
{
header: 'Last transaction',