diff --git a/utils.ts b/utils.ts index 96e347a6..27cc4d7c 100644 --- a/utils.ts +++ b/utils.ts @@ -88,7 +88,10 @@ export function getCurrentTermYear() { } export function getPreviousTermYear() { - const result = getTermYear({ goBackwards: true, skipCurrent: true }).next(); + const result = getTermYear(getCurrentTermYear(), { + goBackwards: true, + skipCurrent: true, + }).next(); if (result.done === true) { throw new Error("Cannot get previous term. Iterator is done.");