rosary: show broken streak reset on page visit, not only after clicking "prayed"
All checks were successful
CI / update (push) Successful in 1m37s
All checks were successful
CI / update (push) Successful in 1m37s
This commit is contained in:
@@ -142,6 +142,9 @@ class RosaryStreakStore {
|
||||
}
|
||||
|
||||
get length() {
|
||||
if (this.#lastPrayed && this.#lastPrayed !== getToday() && !isYesterday(this.#lastPrayed)) {
|
||||
return 0;
|
||||
}
|
||||
return this.#length;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user