Fix: memoization was showing stale values when morphing

This commit is contained in:
Jorge Manrubia
2025-12-04 21:21:54 +01:00
parent bbec988516
commit 704b5b9788
@@ -33,8 +33,7 @@ export default class extends Controller {
}
get #entropyCleanupInDays() {
this.entropyCleanupInDays ??= signedDifferenceInDays(new Date(), new Date(this.entropyValue.closesAt))
return this.entropyCleanupInDays
return signedDifferenceInDays(new Date(), new Date(this.entropyValue.closesAt))
}
#showEntropy() {