Skip to content

Commit 6cb6b7f

Browse files
committed
fixing a bug
1 parent d26d3e5 commit 6cb6b7f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/SortingVisualizer/SortingVisualizer.jsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import GetQuickSortAnimation from '../SortingAlgorithms/QuickSort'
77

88
const NORMAL_COLOR = 'white';
99
const CHANGED_COLOR = 'red';
10-
const AFTER_CHANGE_COLOR = 'green';
10+
const AFTER_CHANGE_COLOR = 'rgb(4, 255, 0)';
1111

1212

1313
export default class SortingVisualizer extends React.Component{
@@ -22,8 +22,8 @@ export default class SortingVisualizer extends React.Component{
2222
}
2323

2424
componentDidMount(){
25-
//this.resetArray();
26-
this.setState({arrayToSort:[50,23,9,18,61,32]});
25+
this.resetArray();
26+
this.setState({arrayToSort:[], prevChanged:[]});
2727
}
2828

2929
resetArray(){

0 commit comments

Comments
 (0)