Skip to content

Commit

Permalink
Fixes bug for expDate
Browse files Browse the repository at this point in the history
  • Loading branch information
Aryan-Dang committed Nov 13, 2022
1 parent 92a6e51 commit e2854b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/Todo/ShoppingItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { deleteButton } from "../icons";

const current = new Date();
// const date = `${current.getDate()}/${current.getMonth()+1}/${current.getFullYear()}`;
const exp = new Date(current.getTime())+4;
//exp.setFullYear(current.getFullYear(),current.getMonth(),current.getDate()+4);
const exp = new Date(current.getTime());
exp.setFullYear(current.getFullYear(),current.getMonth(),current.getDate()+4);

const ShoppingItem = ({ item, setStale }) => {
const handleComplete = async (e, item) => {
Expand Down

0 comments on commit e2854b6

Please sign in to comment.