Skip to content

Commit

Permalink
oopsies color overwrote styles
Browse files Browse the repository at this point in the history
  • Loading branch information
ajay-bhagava committed Jan 14, 2024
1 parent f5d5e03 commit 055d4db
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/Dashboard/Flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ const getLayoutedElements = (nodes, edges, colorSchema, coursesTaken, options =
style.backgroundColor = lerpColor(hardColor, easyColor, courseRating/100.0);
break;
case 'level':
style = {
backgroundColor: lerpColor(easyColor, hardColor, gradRe.test(node.courseCode))
}
style.backgroundColor = lerpColor(easyColor, hardColor, gradRe.test(node.courseCode));
break;
default:
style = {};
Expand Down

0 comments on commit 055d4db

Please sign in to comment.