Skip to content

Commit

Permalink
adjust pool timestamp in swap pro
Browse files Browse the repository at this point in the history
  • Loading branch information
eli-d committed Jun 20, 2024
1 parent e9cccbb commit f7ee342
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/components/SwapPro/SwapProGraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const Graph = ({ pool }: { pool?: SwapProPoolFragmentFragment }) => {
[slicedData
// reformat pool data to match expected graph data
?.map((d) => ({
date: new Date(d.timestamp),
date: new Date(d.timestamp * 1000),
value: parseFloat(d.fusdc.valueUsd),
})),
"$" + header,
Expand Down Expand Up @@ -112,7 +112,7 @@ export const Graph = ({ pool }: { pool?: SwapProPoolFragmentFragment }) => {
[slicedData
// reformat pool data to match expected graph data
?.map((d) => ({
date: new Date(d.timestamp),
date: new Date(d.timestamp * 1000),
value: parseFloat(d.fusdc.valueUsd),
})),
"$" + header
Expand Down

0 comments on commit f7ee342

Please sign in to comment.