|
|
@ -7,6 +7,7 @@ function ErrorPage(props) {
|
|
|
|
const {
|
|
|
|
const {
|
|
|
|
version,
|
|
|
|
version,
|
|
|
|
isLocalStorageSupported,
|
|
|
|
isLocalStorageSupported,
|
|
|
|
|
|
|
|
hasTranslationsError,
|
|
|
|
seriesError,
|
|
|
|
seriesError,
|
|
|
|
customFiltersError,
|
|
|
|
customFiltersError,
|
|
|
|
tagsError,
|
|
|
|
tagsError,
|
|
|
@ -19,6 +20,8 @@ function ErrorPage(props) {
|
|
|
|
|
|
|
|
|
|
|
|
if (!isLocalStorageSupported) {
|
|
|
|
if (!isLocalStorageSupported) {
|
|
|
|
errorMessage = 'Local Storage is not supported or disabled. A plugin or private browsing may have disabled it.';
|
|
|
|
errorMessage = 'Local Storage is not supported or disabled. A plugin or private browsing may have disabled it.';
|
|
|
|
|
|
|
|
} else if (hasTranslationsError) {
|
|
|
|
|
|
|
|
errorMessage = 'Failed to load translations from API';
|
|
|
|
} else if (seriesError) {
|
|
|
|
} else if (seriesError) {
|
|
|
|
errorMessage = getErrorMessage(seriesError, 'Failed to load series from API');
|
|
|
|
errorMessage = getErrorMessage(seriesError, 'Failed to load series from API');
|
|
|
|
} else if (customFiltersError) {
|
|
|
|
} else if (customFiltersError) {
|
|
|
@ -49,6 +52,7 @@ function ErrorPage(props) {
|
|
|
|
ErrorPage.propTypes = {
|
|
|
|
ErrorPage.propTypes = {
|
|
|
|
version: PropTypes.string.isRequired,
|
|
|
|
version: PropTypes.string.isRequired,
|
|
|
|
isLocalStorageSupported: PropTypes.bool.isRequired,
|
|
|
|
isLocalStorageSupported: PropTypes.bool.isRequired,
|
|
|
|
|
|
|
|
hasTranslationsError: PropTypes.bool.isRequired,
|
|
|
|
seriesError: PropTypes.object,
|
|
|
|
seriesError: PropTypes.object,
|
|
|
|
customFiltersError: PropTypes.object,
|
|
|
|
customFiltersError: PropTypes.object,
|
|
|
|
tagsError: PropTypes.object,
|
|
|
|
tagsError: PropTypes.object,
|
|
|
|