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'}
|
||||
flexColumnBody
|
||||
>
|
||||
{authenticatedUser.loginState === 'loggingIn' ? (
|
||||
{!isConnected && authenticatedUser.loginState === 'loggingIn' ? (
|
||||
<PlaceholderLoader />
|
||||
) : authenticatedUser.authenticated && authenticatedUser.profile ? (
|
||||
<Line>
|
||||
|
@@ -35,7 +35,7 @@ const UserChip = ({ onOpenProfile }: Props) => {
|
||||
loginState,
|
||||
} = authenticatedUser;
|
||||
const displayNotificationBadge = hasPendingNotifications(authenticatedUser);
|
||||
return loginState === 'loggingIn' ? (
|
||||
return !profile && loginState === 'loggingIn' ? (
|
||||
<CircularProgress size={25} />
|
||||
) : profile ? (
|
||||
<DotBadge overlap="circle" invisible={!displayNotificationBadge}>
|
||||
|
Reference in New Issue
Block a user