Skip to content

Commit 32737c6

Browse files
committed
updated state change message in Diff.jsx
1 parent 089e243 commit 32737c6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/app/components/Diff.jsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ import { useStoreContext } from "../store";
77

88
function Diff({ snapshot, show }) {
99
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
1211
const { snapshots, viewIndex, sliderIndex } = tabs[currentTab];
1312
let previous;
1413

@@ -18,9 +17,8 @@ function Diff({ snapshot, show }) {
1817
} else {
1918
previous = snapshots[sliderIndex - 1];
2019
}
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
2221
const delta = diff(previous, snapshot);
23-
console.log("this is the result of running diff function ", delta);
2422
// returns html in string
2523
const html = formatters.html.format(delta, previous);
2624
if (show) formatters.html.showUnchanged();

0 commit comments

Comments
 (0)