Updated user data caching
This commit is contained in:
parent
6b96db8cfe
commit
00a1bee73e
2 changed files with 40 additions and 13 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue