Skip to content

Commit

Permalink
Update seeder
Browse files Browse the repository at this point in the history
  • Loading branch information
HoaAyWK committed Nov 6, 2022
1 parent d97879b commit 759a17a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/layouts/dashboard/AccountPopover.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ const AccountPopover = ({ user }) => {
}),
}}
>
{user?.avatar.url ?
(<Avatar src={user?.avatar.url} alt="photoURL" />)
{user?.avatar?.url ?
(<Avatar src={user?.avatar?.url} alt="photoURL" />)
:
(<Avatar />)}

Expand Down
2 changes: 1 addition & 1 deletion src/layouts/dashboard/DashboardSidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const DashboardSidebar = ({ isOpenSidebar, onCloseSidebar, user }) => {
<Box sx={{ mb: 5, mx: 2.5 }}>
<Link underline="none" component={RouterLink} to="/dashboard/users/profile">
<AccountStyle>
{ user?.avatar.url ? (
{ user?.avatar?.url ? (
<Avatar src={`${user?.avatar.url}`} alt={`${user.name}`} />
)
:
Expand Down

0 comments on commit 759a17a

Please sign in to comment.