When the last_two_moves array has only one entry in it, then index 0
is the last move, not two moves ago, so we don't actually want to look
at that.
let active = false;
if (this.props.active) {
active = true;
let active = false;
if (this.props.active) {
active = true;
- if (this.props.last_two_moves[0]) {
+ 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).
*
/* First index (0) gives us our last move, (that is, of the
* last two moves, it's the first one, so two moves ago).
*