score:0

    if (this.props.isAuthenticated) {
      const role_type = localStorage.getItem("role_type")
      if (role_type === "is_subuser") {
        return <Redirect to="/profile" />;
      } else {
        return <Redirect to="/" />;
      }
    }

Related Query

More Query from same tag