mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-14 13:10:29 +00:00
error message formatted
This commit is contained in:
parent
8dc98ec1d2
commit
5620ada545
2 changed files with 3 additions and 3 deletions
|
|
@ -52,9 +52,9 @@ const Discover = ({ urlParams, queryParams }) => {
|
|||
</div>
|
||||
<div className={styles['catalog-content-container']}>
|
||||
{
|
||||
error ?
|
||||
error !== null ?
|
||||
<div className={styles['message-container']}>
|
||||
{error}
|
||||
{error.type}{error.type === 'Other' ? ` - ${error.content}` : null}
|
||||
</div>
|
||||
:
|
||||
Array.isArray(metaItems) ?
|
||||
|
|
|
|||
|
|
@ -186,7 +186,7 @@ const useCatalog = (urlParams, queryParams) => {
|
|||
}))
|
||||
:
|
||||
null;
|
||||
const error = state.discover.content.type === 'Err' ? JSON.stringify(state.discover.content.content) : null;
|
||||
const error = state.discover.content.type === 'Err' ? state.discover.content.content : null;
|
||||
setDiscover([selectInputs, paginateInput, items, error]);
|
||||
};
|
||||
core.on('NewModel', onNewModel);
|
||||
|
|
|
|||
Loading…
Reference in a new issue