We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a9f184 commit 0a34408Copy full SHA for 0a34408
1 file changed
client/src/pages/Profile.jsx
@@ -15,7 +15,7 @@ export const Profile = () => {
15
const {id} = useParams();
16
const {user: currentUser, config} = useAppStore(state => state);
17
const [user, setUser] = useState(currentUser);
18
- const [loading, setLoading] = useState(id !== null);
+ const [loading, setLoading] = useState(!isEmpty(id));
19
const navigate = useNavigate();
20
21
useEffect(() => {
0 commit comments