Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Handle null avatar

Marcin Gębala27c4e91b0194
diff --git a/saleor/static/dashboard-next/components/AppLayout/AppLayout.tsx b/saleor/static/dashboard-next/components/AppLayout/AppLayout.tsx
index 3e986859ed..9e5e93cd29 100644
--- a/saleor/static/dashboard-next/components/AppLayout/AppLayout.tsx
+++ b/saleor/static/dashboard-next/components/AppLayout/AppLayout.tsx
@@ -385,7 +385,9 @@ const AppLayout = withStyles(styles, {
>
<Chip
avatar={
- <Avatar alt="user" src={user.avatar.url} />
+ user.avatar && (
+ <Avatar alt="user" src={user.avatar.url} />
+ )
}
className={classes.userChip}
label={