Skip to content

Commit 0a34408

Browse files
committed
Fix for Profile spinner
1 parent 0a9f184 commit 0a34408

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

client/src/pages/Profile.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const Profile = () => {
1515
const {id} = useParams();
1616
const {user: currentUser, config} = useAppStore(state => state);
1717
const [user, setUser] = useState(currentUser);
18-
const [loading, setLoading] = useState(id !== null);
18+
const [loading, setLoading] = useState(!isEmpty(id));
1919
const navigate = useNavigate();
2020

2121
useEffect(() => {

0 commit comments

Comments
 (0)