mirror of
https://github.com/filecoin-project/slate.git
synced 2024-09-20 18:58:59 +03:00
cleaner shouldViewerRedirect
This commit is contained in:
parent
68e16e28ce
commit
eb701fd26e
@ -309,11 +309,11 @@ export const shouldRedirect = async ({ id }) => {
|
||||
id,
|
||||
});
|
||||
|
||||
if (!user || user.error) {
|
||||
return false;
|
||||
if (user && user.id) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return true;
|
||||
return false;
|
||||
};
|
||||
|
||||
// TODO(jim): Work on better serialization when adoption starts occuring.
|
||||
|
Loading…
Reference in New Issue
Block a user