Skip to content

Commit 1fdcdf6

Browse files
author
mihaiconstantin
committed
Updated checkRound to increment totalWorkRounds
1 parent 48945ef commit 1fdcdf6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/renderer/components/timer/Timer-controller.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,12 @@ export default {
2929
checkRound() {
3030
if (this.currentRound === 'work' && this.round >= this.workRounds) {
3131
this.$store.dispatch('setCurrentRound', 'long-break')
32+
this.$store.dispatch('incrementTotalWorkRounds')
3233
EventBus.$emit('ready-long-break')
3334
console.log('long-break ready')
3435
} else if (this.currentRound === 'work') {
3536
this.$store.dispatch('setCurrentRound', 'short-break')
37+
this.$store.dispatch('incrementTotalWorkRounds')
3638
EventBus.$emit('ready-short-break')
3739
console.log('short-break ready')
3840
} else if (this.currentRound === 'short-break') {

0 commit comments

Comments
 (0)