File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,7 @@ import { useStoreContext } from "../store";
7
7
8
8
function Diff ( { snapshot, show } ) {
9
9
const [ mainState ] = useStoreContext ( ) ;
10
- const { currentTab, tabs } = mainState ; //k/v pairs of mainstate store object being created
11
- console . log ( mainState ) ;
10
+ const { currentTab, tabs } = mainState ; //Nate:: k/v pairs of mainstate store object being created
12
11
const { snapshots, viewIndex, sliderIndex } = tabs [ currentTab ] ;
13
12
let previous ;
14
13
@@ -18,9 +17,8 @@ function Diff({ snapshot, show }) {
18
17
} else {
19
18
previous = snapshots [ sliderIndex - 1 ] ;
20
19
}
21
- //diff function is supposed to return two of the same objects side by side
20
+ // Nate:: diff function from jsondiffpatch is supposed to return a comparaison of two objects, one has an updated change
22
21
const delta = diff ( previous , snapshot ) ;
23
- console . log ( "this is the result of running diff function " , delta ) ;
24
22
// returns html in string
25
23
const html = formatters . html . format ( delta , previous ) ;
26
24
if ( show ) formatters . html . showUnchanged ( ) ;
You can’t perform that action at this time.
0 commit comments