]> git.cworth.org Git - lmno.games/blobdiff - scribe/scribe.jsx
Rename local variable from "active" to "grid_active"
[lmno.games] / scribe / scribe.jsx
index 2cc51483c3a429f5a2f0d0e91d7ddf0deda8109c..d66fc049b9a90b7c17c94ad39942b6d03312f17a 100644 (file)
@@ -402,9 +402,9 @@ class Board extends React.Component {
      *    b. This mini grid corresponds to this players last turn
      *    c. The mini grid that corresponds to the players last turn is full
      */
-    let active = false;
+    let grid_active = false;
     if (this.props.active) {
-      active = true;
+      grid_active = true;
       if (this.props.last_two_moves.length > 1) {
         /* First index (0) gives us our last move, (that is, of the
          * last two moves, it's the first one, so two moves ago).
@@ -422,7 +422,7 @@ class Board extends React.Component {
         /* If the target mini-grid isn't full then this grid is
          * only active if it is that target. */
         if (occupied < 9)
-          active = (i === target);
+          grid_active = (i === target);
       }
     }
 
@@ -438,7 +438,7 @@ class Board extends React.Component {
     return (
       <MiniGrid
         squares={squares}
-        active={active}
+        active={grid_active}
         last_moves={last_moves}
         onClick={(j) => this.props.onClick(i,j)}
       />