cd2fe5aad6
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.