componentDidUpdate() {
    if (
      (this.state.locked.every(i => i === true) &&
      this.state.giantLock.every(i => i === true) &&
      this.state.coins.pot >= 1) ||
      this.state.giantDie < 2
    ) {
      this.doResults(this.state.halflingDice, this.state.giantDie);
    }
  }
/** If all dice locked, calculate the results. */
If all dice locked, calculate the results.
If all dice locked calculate the results .
componentDidUpdate() {
    if (
      (this.state.locked.every(i => i === true) &&
      this.state.giantLock.every(i => i === true) &&
      this.state.coins.pot >= 1) ||
      this.state.giantDie < 2
    ) {
      this.doResults(this.state.halflingDice, this.state.giantDie);
    }
  }
componentDidUpdate ( ) { if ( ( this . state . locked . every ( i => i === true ) && this . state . giantLock . every ( i => i === true ) && this . state . coins . pot >= 1 ) || this . state . giantDie < 2 ) { this . doResults ( this . state . halflingDice , this . state . giantDie ) ; } }
If all dice locked, calculate the results.
If all dice locked calculate the results .