```
const navigate = useNavigate();

const responseGoogle = (response) => {

  localStorage.setItem('user', JSON.stringify(response.profileObj));

  const { name, googleId, imageUrl } = response.profileObj;

  const doc = {
    _id: googleId,
    _type: 'user',
    userName: name,
    image: imageUrl,
  };

  client.createIfNotExists(doc).then(() => {
    navigate('/', { replace: true });
  });
};

```

I get an error that "name is undefined" – but how? What's the problem with `name`?
I've been dealing with this for a long time and I still can't figure it out