Skip to content

Commit b90a22d

Browse files
committed
cleaned up console.logs and various typos
1 parent 9c17c4d commit b90a22d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package/linkFiber.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module.exports = (snap, mode) => {
2626
function changeSetState(component) {
2727
console.log('Component', component);
2828
// check that setState hasn't been changed yet
29-
if (component.setState.linkFiberChanged === true) return;
29+
if (component.setState.linkFiberChanged) return;
3030
// make a copy of setState
3131
const oldSetState = component.setState.bind(component);
3232
// replace component's setState so developer doesn't change syntax
@@ -64,7 +64,7 @@ module.exports = (snap, mode) => {
6464

6565
// Helper function to traverse through the memoized state
6666
function traverseHooks(memoizedState) {
67-
// Declare variables and assigned t return nextComponent;o 0th index and an empty object, respectively
67+
// Declare variables and assigned to 0th index and an empty object, respectively
6868
const memoized = {};
6969
let index = 0;
7070
astHooks = Object.values(astHooks);

0 commit comments

Comments
 (0)