From 97b6de6aa437f7a913a33b9e6aa18a919faf2caf Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Thu, 12 Apr 2018 16:31:01 -0400 Subject: a whole bunch of things that should be in their own commits --- frontend/components/ErrorMessage.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'frontend/components/ErrorMessage.js') diff --git a/frontend/components/ErrorMessage.js b/frontend/components/ErrorMessage.js index 3731554..c73a2b7 100644 --- a/frontend/components/ErrorMessage.js +++ b/frontend/components/ErrorMessage.js @@ -18,14 +18,14 @@ const StyledError = styled.div` } `; -const DisplayError = ({ error }) => { +const DisplayError = ({ error, refetch }) => { if (!error || !error.message) return null; if (error.networkError && error.networkError.result && error.networkError.result.errors.length) { return error.networkError.result.errors.map((error, i) => (

Shoot! - {error.message} + {error.message.replace('GraphQL error: ', '')}

)); @@ -34,7 +34,8 @@ const DisplayError = ({ error }) => {

Shoot! - {error.message} + {error.message.replace('GraphQL error: ', '')} +

); -- cgit v1.3