Fix: Off by one in duty display

This commit is contained in:
Simon Einzinger 2024-10-14 11:04:34 +02:00
parent da6370c902
commit 3bbada9cc5

View file

@ -58,7 +58,7 @@ export default {
currentDuties() {
return (
this.duties.find(
(duty) => duty.week === (this.currentWeek + 6) % this.duties.length
(duty) => duty.week - 1 === (this.currentWeek + 6) % this.duties.length
) || {}
);
},