Skip to content

Commit

Permalink
fix(wallet): Handle case where timestamp is undefined in transaction-…
Browse files Browse the repository at this point in the history
…card (#4126)
  • Loading branch information
msarcev authored Nov 19, 2024
1 parent 44c7f37 commit 5970587
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/wallet/src/ui/app/components/transactions-card/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ export function TransactionCard({ txn, address }: TransactionCardProps) {

const error = txn.effects?.status.error;

const timestamp = txn.timestampMs;
const transactionDate = formatDate(Number(timestamp), ['month', 'day', 'hour', 'minute']);
const transactionDate = !txn.timestampMs
? '--'
: formatDate(Number(txn.timestampMs), ['month', 'day', 'hour', 'minute']);

return (
<Link
Expand Down

0 comments on commit 5970587

Please sign in to comment.