Skip to content

Commit

Permalink
docs: displays the error correctly (#10275)
Browse files Browse the repository at this point in the history
  • Loading branch information
ctesniere authored Nov 11, 2022
1 parent be9786f commit f19d483
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/get-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ function DisplayLocations() {
const { loading, error, data } = useQuery(GET_LOCATIONS);

if (loading) return <p>Loading...</p>;
if (error) return <p>Error :(</p>;
if (error) return <p>Error : {error.message}</p>;

return data.locations.map(({ id, name, description, photo }) => (
<div key={id}>
Expand Down

0 comments on commit f19d483

Please sign in to comment.