Skip to content

Commit 7cd4669

Browse files
committed
use ErrorMessage because Error is reserved
1 parent 167a8ba commit 7cd4669

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Profile/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { GET_REPOSITORIES_OF_CURRENT_USER } from './queries';
55
import RepositoryList from '../Repository';
66

77
import Loading from '../Loading';
8-
import Error from '../Error';
8+
import ErrorMessage from '../Error';
99

1010
const Profile = () => (
1111
<Query
@@ -23,7 +23,7 @@ const Profile = () => (
2323
}
2424

2525
if (error) {
26-
return <Error error={error} />;
26+
return <ErrorMessage error={error} />;
2727
}
2828

2929
return (

0 commit comments

Comments
 (0)