Skip to content

Commit

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

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 committed Feb 5, 2022
1 parent 7e0b8aa commit ca8dc8d
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 ca8dc8d

Please sign in to comment.