Skip to content

Commit

Permalink
Updated checkRound to increment totalWorkRounds
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaiconstantin committed May 16, 2020
1 parent 48945ef commit 1fdcdf6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/renderer/components/timer/Timer-controller.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@ export default {
checkRound() {
if (this.currentRound === 'work' && this.round >= this.workRounds) {
this.$store.dispatch('setCurrentRound', 'long-break')
this.$store.dispatch('incrementTotalWorkRounds')
EventBus.$emit('ready-long-break')
console.log('long-break ready')
} else if (this.currentRound === 'work') {
this.$store.dispatch('setCurrentRound', 'short-break')
this.$store.dispatch('incrementTotalWorkRounds')
EventBus.$emit('ready-short-break')
console.log('short-break ready')
} else if (this.currentRound === 'short-break') {
Expand Down

0 comments on commit 1fdcdf6

Please sign in to comment.