Skip to content

Commit

Permalink
fix: date display for active orders from node
Browse files Browse the repository at this point in the history
  • Loading branch information
crnbarr93 committed Sep 11, 2024
1 parent 0cd41ed commit 6758f86
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 6758f86

Please sign in to comment.