Web:Common:PrivateRoute: fix

This commit is contained in:
Timofey Boyko 2023-07-19 15:32:27 +03:00
parent 4ed82765f9
commit c805d5dd19

View File

@ -47,7 +47,7 @@ const PrivateRoute = ({ children, ...rest }) => {
location.pathname === "/portal-settings/delete-data/deletion" ||
location.pathname === "/portal-settings/delete-data/deactivation";
const isBonusPage = props.location.pathname === "/portal-settings/bonus";
const isBonusPage = location.pathname === "/portal-settings/bonus";
if (isLoaded && !isAuthenticated) {
// console.log("PrivateRoute render Redirect to login", rest);x
@ -200,13 +200,8 @@ export default inject(({ auth }) => {
const { isNotPaidPeriod } = currentTariffStatusStore;
const { user } = userStore;
const {
setModuleInfo,
wizardCompleted,
personal,
tenantStatus,
standalone,
} = settingsStore;
const { setModuleInfo, wizardCompleted, personal, tenantStatus, standalone } =
settingsStore;
return {
isCommunity,