Skip to content

Commit

Permalink
chore: use updated at in frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
im-adithya committed Feb 19, 2025
1 parent 907e2c9 commit edc1479
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/TransactionItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ function TransactionItem({ tx }: Props) {
</span>
{from !== undefined && <>&nbsp;{from}</>}
<span className="text-xs md:text-base ml-2 truncate text-muted-foreground">
{dayjs(tx.settledAt || tx.createdAt).fromNow()}
{dayjs(tx.updatedAt).fromNow()}
</span>
</p>
</div>
Expand Down Expand Up @@ -208,7 +208,7 @@ function TransactionItem({ tx }: Props) {
<div className="mt-6">
<p>Date & Time</p>
<p className="text-muted-foreground">
{dayjs(tx.settledAt || tx.createdAt)
{dayjs(tx.updatedAt)
.tz(dayjs.tz.guess())
.format("D MMMM YYYY, HH:mm")}
</p>
Expand Down

0 comments on commit edc1479

Please sign in to comment.