Skip to content

Commit

Permalink
bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
peter6866 committed Jul 5, 2024
1 parent 74d9d02 commit e1d9927
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions frontend/src/pages/DashboardPage/PriceHistory.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,13 @@ import { axisClasses } from "@mui/x-charts/ChartsAxis";

function formatDate(isoString) {
const date = moment.utc(isoString);
console.log(date);
return date.local().format("MM/DD/YYYY");
}

const PriceHistory = ({ history, useInAuth }) => {
console.log(history);
const [openDialog, setOpenDialog] = React.useState(false);
const x = history.map((record) => formatDate(record.createdAt));
const y = history.map((record) => record.price);
console.log(x);
console.log(y);

const formattedHistory = x.map((date, index) => ({
date,
Expand Down

0 comments on commit e1d9927

Please sign in to comment.