diff --git a/src/routes/Board/Board.js b/src/routes/Board/Board.js index 1f4d1c755..1afd7d104 100644 --- a/src/routes/Board/Board.js +++ b/src/routes/Board/Board.js @@ -40,21 +40,12 @@ const Board = () => { ); } case 'Err': { - const type = `Error(${catalog.content.content.type})`; - const description = catalog.content.content.type === 'UnexpectedResponse' ? - catalog.content.content.content - : - catalog.content.content.type === 'Env' ? - catalog.content.content.content.message - : - null; - const message = `${type}${description !== null ? ` ${description}` : null}`; return ( ); diff --git a/src/routes/Search/Search.js b/src/routes/Search/Search.js index f59829347..d1bdc2378 100644 --- a/src/routes/Search/Search.js +++ b/src/routes/Search/Search.js @@ -63,21 +63,12 @@ const Search = ({ queryParams }) => { ); } case 'Err': { - const type = `Error(${catalog.content.content.type})`; - const description = catalog.content.content.type === 'UnexpectedResponse' ? - catalog.content.content.content - : - catalog.content.content.type === 'Env' ? - catalog.content.content.content.message - : - ''; - const message = `${type}${description !== null ? ` ${description}` : null}`; return ( );