mirror of
https://github.com/filecoin-project/slate.git
synced 2024-11-30 22:13:47 +03:00
profiles: catches error case
This commit is contained in:
parent
acbadad710
commit
0c1faa991a
13
server.js
13
server.js
@ -58,12 +58,13 @@ app.prepare().then(async () => {
|
|||||||
|
|
||||||
return app.render(req, res, "/profile", {
|
return app.render(req, res, "/profile", {
|
||||||
viewer,
|
viewer,
|
||||||
creator: creator
|
creator:
|
||||||
? {
|
creator && !creator.error
|
||||||
username: creator.username,
|
? {
|
||||||
data: { photo: creator.data.photo },
|
username: creator.username,
|
||||||
}
|
data: { photo: creator.data.photo },
|
||||||
: null,
|
}
|
||||||
|
: null,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user