Skip to content

Commit

Permalink
🐛 Remove oura-sleep as subdirectory type
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Oct 7, 2020
1 parent 17083de commit b7cc153
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import "./styles.scss";

const ucFirst = (str: string) => str.charAt(0).toUpperCase() + str.slice(1);

const subDirectories = ["rescuetime-time-tracking", "oura-activity", "oura-sleep"];
const subDirectories = ["rescuetime-time-tracking", "oura-activity"];

const categoryColors: { [index: string]: string } = {
"Software Development": "#00429d",
Expand Down Expand Up @@ -180,9 +180,11 @@ const App: FunctionComponent<{}> = () => {
useMemoApiData(repo, api, path)
.then((data) => {
Object.keys(data).forEach((key) => {
if (data[key].rem) {
if (data[key].deep || data[key].light || data[key].awake) {
delete data[key].total;
delete data[key].score;
delete data[key].duration;
delete data[key].efficiency;
}
});
setGraphData(data);
Expand Down

0 comments on commit b7cc153

Please sign in to comment.