[Review] Move visible countdown types to getter (#1999)

* Move visible countdown types to getter

* Punchier shimmer animation
This commit is contained in:
Carlos Fernandez 2026-06-14 13:15:01 -04:00 committed by GitHub
parent 919e872f68
commit ec56e1812c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 29 additions and 19 deletions

View file

@ -15,7 +15,7 @@ export default class DhCountdowns extends foundry.abstract.DataModel {
}
handleChange() {
const previousCountdowns = foundry.ui.countdowns.previusCountdownData;
const previousCountdowns = foundry.ui.countdowns.previousCountdownData;
const changedCountdowns = Object.entries(this.countdowns).reduce((acc, [key, countdown]) => {
const previousCountdown = previousCountdowns[key];
if (!previousCountdown || (previousCountdown.progress.current !== countdown.progress.current)) {