Skip to content

Commit

Permalink
Removed pre-roll (componentDidMount) firing of totals callback
Browse files Browse the repository at this point in the history
  • Loading branch information
robertjmason committed Apr 21, 2017
1 parent 7adac53 commit 4643781
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/DiceContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ export default class DiceContainer extends Component {
this.props.totalCb(total)
}

componentDidMount() {
this.props.totalCb(this.state.totalValue)
}

componentDidUpdate(prevProps, prevState) {
if (prevProps.numDice !== this.props.numDice) {
this.getDiceTotal()
Expand Down

0 comments on commit 4643781

Please sign in to comment.