mirror of
https://github.com/4ian/GDevelop.git
synced 2025-10-15 10:19:04 +00:00
Avoid showing a loader on profile and user chip on subsequent loads (#6296)
This commit is contained in:
@@ -158,7 +158,7 @@ const ProfileDialog = ({ open, onClose }: Props) => {
|
|||||||
maxWidth={isConnected ? 'md' : 'sm'}
|
maxWidth={isConnected ? 'md' : 'sm'}
|
||||||
flexColumnBody
|
flexColumnBody
|
||||||
>
|
>
|
||||||
{authenticatedUser.loginState === 'loggingIn' ? (
|
{!isConnected && authenticatedUser.loginState === 'loggingIn' ? (
|
||||||
<PlaceholderLoader />
|
<PlaceholderLoader />
|
||||||
) : authenticatedUser.authenticated && authenticatedUser.profile ? (
|
) : authenticatedUser.authenticated && authenticatedUser.profile ? (
|
||||||
<Line>
|
<Line>
|
||||||
|
@@ -35,7 +35,7 @@ const UserChip = ({ onOpenProfile }: Props) => {
|
|||||||
loginState,
|
loginState,
|
||||||
} = authenticatedUser;
|
} = authenticatedUser;
|
||||||
const displayNotificationBadge = hasPendingNotifications(authenticatedUser);
|
const displayNotificationBadge = hasPendingNotifications(authenticatedUser);
|
||||||
return loginState === 'loggingIn' ? (
|
return !profile && loginState === 'loggingIn' ? (
|
||||||
<CircularProgress size={25} />
|
<CircularProgress size={25} />
|
||||||
) : profile ? (
|
) : profile ? (
|
||||||
<DotBadge overlap="circle" invisible={!displayNotificationBadge}>
|
<DotBadge overlap="circle" invisible={!displayNotificationBadge}>
|
||||||
|
Reference in New Issue
Block a user