Update
This commit is contained in:
@@ -19,7 +19,7 @@ export default function GuestGuard({ children }: GuestGuardProps) {
|
|||||||
{
|
{
|
||||||
return <Navigate to={'/prescription-orders'} replace={true}/>;
|
return <Navigate to={'/prescription-orders'} replace={true}/>;
|
||||||
}
|
}
|
||||||
if(formattedRoleName === 'hospital-admin)
|
if(formattedRoleName === 'hospital-admin')
|
||||||
{
|
{
|
||||||
return <Navigate to={'/dashboard'} replace={true}/>;
|
return <Navigate to={'/dashboard'} replace={true}/>;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user