Skip to content

Commit

Permalink
removed some unecessary comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ZahidMirza95 committed Jan 11, 2022
1 parent 68a04e2 commit 132ce37
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/components/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ const Form = ({setBalance, balance, setTransactionsDict, transactionsDict, setLa
);
}

export default Form;
export default Form;
5 changes: 0 additions & 5 deletions src/pages/HomePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,11 @@ function HomePage() {
}, [transactionsDict]);

const saveLocalTransactions = () => {
/*console.log("saving transactions");
console.log(localStorage.getItem("transactions"));
console.log(transactionsDict);*/
localStorage.setItem("transactions", JSON.stringify(transactionsDict));
localStorage.setItem("balance", JSON.stringify(balance));
};

const getLocalTransactions = () => {
/*console.log("getting transactions");
console.log(localStorage.getItem("transactions"));*/
if(localStorage.getItem("transactions") === null) {
localStorage.setItem("transactions", JSON.stringify({}));
}
Expand Down
4 changes: 2 additions & 2 deletions src/pages/StatsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function StatsPage() {
labels,
datasets: [
{
label: 'Amount???',
label: 'Total Amount',
data: datesThisWeek.map((date) => getTotalTransactions(date)),
backgroundColor: 'black',
}
Expand All @@ -115,4 +115,4 @@ function StatsPage() {
);
}

export default StatsPage;
export default StatsPage;

0 comments on commit 132ce37

Please sign in to comment.