Update prototype page

This commit is contained in:
Hazem Krimi
2021-06-16 00:42:36 +01:00
parent 28addf43b4
commit 4965bad1d8
+4 -5
View File
@@ -215,7 +215,9 @@ const Prototype = () => {
} }
}; };
return role === 'productOwner' || role === 'developer' ? ( return role === 'productOwner' ||
role === 'developer' ||
role === 'client' ? (
<> <>
{!templateLoading && !prototypeLoading ? ( {!templateLoading && !prototypeLoading ? (
<> <>
@@ -362,10 +364,7 @@ const Prototype = () => {
)} )}
</> </>
) : ( ) : (
<> <>{role === 'admin' && <Redirect to='/clients' />}</>
{role === 'admin' && <Redirect to='/clients' />}
{role === 'client' && <Redirect to='/project' />}
</>
); );
}; };