Some checks failed
Aegis CI / lint-and-test (push) Has been cancelled
useMemo executes its factory immediately on first render. lastActivityDate was defined with const after the useMemo call inside the component, causing a temporal dead zone: 'Cannot access v before initialization'. Fix: move the function to module scope (before the component), where it is fully initialized before any hook runs.