Commit 8113671c authored by Live Jortveit Sagebakken's avatar Live Jortveit Sagebakken
Browse files

(#3) Cleaned up some things before merge with master

parent d6c50dc1
import { useEffect, useState } from "react";
import Commit from "./commit";
import DatePicker from "react-datepicker";
function CommitView() {
// eslint-disable-next-line react-hooks/rules-of-hooks
......@@ -120,7 +119,7 @@ function CommitView() {
return 0;
}
}
// TODO: Fikse sånn at det ikke blir krøll ved månedskifte + displaye "Ingen commits" dersom det ikke er noen commits, spesielt viktig for today...
function filterOnWeeks(){
var startDate = getStartDate();
console.log(startDate);
......@@ -138,10 +137,10 @@ function CommitView() {
console.log("StartDay:" + startDay);
console.log()
console.log("Month:" + month)
if(startDay === getMonthLength(month) && month.toString().includes(month.toString())) {
/*if(startDay === getMonthLength(month) && month.toString().includes(month.toString())) {
startDay = 0;
month ++;
}
}*/
console.log(startDay);
commitsList.push(commits.filter((issue: {committed_date: string}) =>
issue.committed_date.includes(dateFormat)).map(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment