Skip to content

Commit

Permalink
fix(TransactionsPendingRow): streamline date and time formatting logi…
Browse files Browse the repository at this point in the history
…c for better readability (#17843)
  • Loading branch information
heorhi-deriv authored Dec 23, 2024
1 parent f81e450 commit 392f743
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,11 @@ const TransactionsPendingRow: React.FC<TProps> = ({ transaction }) => {
<TransactionsPendingRowField
className={{ 'wallets-transactions-pending-row__transaction-time': isDesktop }}
name={localize('Time')}
value={`${
isDesktop &&
`${FormatUtils.getFormattedDateString(transaction.submit_date, { unix: true })} `
}${FormatUtils.getFormattedTimeString(transaction.submit_date, true)}`}
value={
isDesktop
? `${FormatUtils.getFormattedDateString(transaction.submit_date, { unix: true })} ${FormatUtils.getFormattedTimeString(transaction.submit_date, true)}`
: `${FormatUtils.getFormattedTimeString(transaction.submit_date, true)}`
}
valueTextProps={{
color: 'general',
size: isDesktop ? '2xs' : 'xs',
Expand Down

0 comments on commit 392f743

Please sign in to comment.