Updated user data caching

This commit is contained in:
Alois 2026-04-05 20:48:35 +02:00
commit 00a1bee73e
2 changed files with 40 additions and 13 deletions

View file

@ -13,7 +13,7 @@ export default function Wrapper(props: {
const [user, setUser] = useState<User | null>(null);
useEffect(() => {
if (!props.userId) {
if (props.userId == null) {
setUser(failedUser);
return;
}