We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This code is wrong: const owner = await axios.get(/api/homes/${home.id}/owner);
const owner = await axios.get(
);
It should be replaced with: const { data } = await axios.get(/api/homes/${home.id}/owner);
const { data } = await axios.get(
And then you get the owner email by data?.owner.email
owner email
data?.owner.email
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This code is wrong:
const owner = await axios.get(
/api/homes/${home.id}/owner);
It should be replaced with:
const { data } = await axios.get(
/api/homes/${home.id}/owner);
And then you get the
owner email
bydata?.owner.email
The text was updated successfully, but these errors were encountered: