Skip to content

Commit

Permalink
docs: fix variable name from profileData to data in CSR page (ver…
Browse files Browse the repository at this point in the history
…cel#34018)

Since the variable name is called `data`, I believe checking `profileData` will always be `undefined`.

## Documentation / Examples

- [x] Make sure the linting passes by running `yarn lint`
  • Loading branch information
MohammadxAli authored and natew committed Feb 16, 2022
1 parent 5e393f3 commit 1ace577
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/basic-features/data-fetching/client-side.md
Expand Up @@ -30,7 +30,7 @@ function Profile() {
}, [])

if (isLoading) return <p>Loading...</p>
if (!profileData) return <p>No profile data</p>
if (!data) return <p>No profile data</p>

return (
<div>
Expand Down

0 comments on commit 1ace577

Please sign in to comment.