mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-29 05:00:43 +10:00
Render NotFoundPage when user is not found
This commit is contained in:
parent
f9e2f45a01
commit
161a471234
1 changed files with 4 additions and 2 deletions
|
|
@ -24,7 +24,7 @@ import {
|
|||
Reviews,
|
||||
ButtonTabNavHorizontal,
|
||||
} from '../../components';
|
||||
import { TopbarContainer } from '../../containers';
|
||||
import { TopbarContainer, NotFoundPage } from '../../containers';
|
||||
import { loadData } from './ProfilePage.duck';
|
||||
import config from '../../config';
|
||||
|
||||
|
|
@ -210,7 +210,9 @@ export class ProfilePageComponent extends Component {
|
|||
|
||||
let content;
|
||||
|
||||
if (userShowError || queryListingsError) {
|
||||
if (userShowError && userShowError.status === 404) {
|
||||
return <NotFoundPage />;
|
||||
} else if (userShowError || queryListingsError) {
|
||||
content = (
|
||||
<p className={css.error}>
|
||||
<FormattedMessage id="ProfilePage.loadingDataFailed" />
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue