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> {
130130 // make sure all users in this app have checked login info
131131 if ( ! this . props . isFetchUserFinished || ( this . props . currentUserId && ! this . props . fetchHomeDataFinished ) ) {
132132 const hideLoadingHeader = isTemplate || isAuthUnRequired ( pathname ) ;
133+ return < ProductLoading hideHeader = { hideLoadingHeader } /> ;
134+ }
135+ else {
133136 // 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+ }
137142 }
138- return < ProductLoading hideHeader = { hideLoadingHeader } /> ;
139143 }
140144
141145 // persisting the language in local storage
You can’t perform that action at this time.
0 commit comments