This commit is contained in:
Nikita Gopienko 2019-11-08 11:29:03 +03:00
commit b66970c03a
2 changed files with 3 additions and 3 deletions

View File

@ -60,9 +60,9 @@ class Customization extends React.Component {
isLoadedData: false,
isLoading: false,
timezones,
timezone: findSelectedItemByKey(timezones, portalTimeZoneId),
timezone: findSelectedItemByKey(timezones, portalTimeZoneId || timezones[0]),
languages,
language: findSelectedItemByKey(languages, portalLanguage),
language: findSelectedItemByKey(languages, portalLanguage || languages[0]),
greetingTitle: greetingSettings,
isLoadingGreetingSave: false,
isLoadingGreetingRestore: false,

View File

@ -23,7 +23,7 @@ class ConfirmRoute extends React.Component {
if (forUnauthorized && new Cookies().get(AUTH_KEY))
//TODO: Remove cookie getting after setup on server
return history.push(`/error=Access error`);
return history.push(`/error=Access error. You should be unauthorized for performing this action`);
const { location, isAuthenticated } = this.props;
const { search } = location;