File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
client/packages/lowcoder/src Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -130,12 +130,16 @@ class AppIndex extends React.Component<AppIndexProps, any> {
130
130
// make sure all users in this app have checked login info
131
131
if ( ! this . props . isFetchUserFinished || ( this . props . currentUserId && ! this . props . fetchHomeDataFinished ) ) {
132
132
const hideLoadingHeader = isTemplate || isAuthUnRequired ( pathname ) ;
133
+ return < ProductLoading hideHeader = { hideLoadingHeader } /> ;
134
+ }
135
+ else {
133
136
// if the user just logged in, we send the event to posthog
134
- if ( sessionStorage . getItem ( '_just_logged_in_' ) ) {
135
- posthog . identify ( this . props . currentUserId ) ;
136
- sessionStorage . removeItem ( '_just_logged_in_' ) ;
137
+ if ( isLocalhost || isLowCoderDomain ) {
138
+ if ( sessionStorage . getItem ( '_just_logged_in_' ) ) {
139
+ posthog . identify ( this . props . currentUserId ) ;
140
+ sessionStorage . removeItem ( '_just_logged_in_' ) ;
141
+ }
137
142
}
138
- return < ProductLoading hideHeader = { hideLoadingHeader } /> ;
139
143
}
140
144
141
145
// persisting the language in local storage
You can’t perform that action at this time.
0 commit comments