Fix: Off by one in duty display
This commit is contained in:
parent
da6370c902
commit
3bbada9cc5
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ export default {
|
||||||
currentDuties() {
|
currentDuties() {
|
||||||
return (
|
return (
|
||||||
this.duties.find(
|
this.duties.find(
|
||||||
(duty) => duty.week === (this.currentWeek + 6) % this.duties.length
|
(duty) => duty.week - 1 === (this.currentWeek + 6) % this.duties.length
|
||||||
) || {}
|
) || {}
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue