Skip to content

Commit

Permalink
fix: date display for active orders from node (#3840)
Browse files Browse the repository at this point in the history
  • Loading branch information
crnbarr93 authored Sep 12, 2024
1 parent 0cd41ed commit ef5f6db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ async function getTickInfoAndTransformOrders(
output,
quoteAsset,
baseAsset,
placed_at: dayjs(o.placed_at / 1000).unix(),
placed_at: dayjs(Math.floor(o.placed_at / 1000000)).unix(),
};
});
}
4 changes: 2 additions & 2 deletions packages/web/components/complex/orders-history/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -456,8 +456,8 @@ const TableOrderRow = memo(
case "partiallyFilled":
return <OrderProgressBar order={order} />;
case "cancelled":
const dayDiff = dayjs(new Date()).diff(dayjs(placed_at), "d");
const hourDiff = dayjs(new Date()).diff(dayjs(placed_at), "h");
const dayDiff = dayjs(new Date()).diff(placedAt, "d");
const hourDiff = dayjs(new Date()).diff(placedAt, "h");

return (
<span className="body2 md:caption text-osmoverse-300">
Expand Down

0 comments on commit ef5f6db

Please sign in to comment.