Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

Commit

Permalink
Merge pull request #1562 from ecency/bugfix/sidebar-npe-error
Browse files Browse the repository at this point in the history
Fixed sidebar error when open it immediately after page load
  • Loading branch information
feruzm authored Feb 27, 2024
2 parents bd55af8 + 585ccf0 commit f51281f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/common/components/decks/deck-toolbar/deck-toolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ export const DeckToolbar = ({ isExpanded, setIsExpanded, history }: Props) => {
setIsExpanded={setIsExpanded}
/>
<DeckToolbarBaseActions
history={history}
isExpanded={isExpanded}
history={history}
setIsExpanded={setIsExpanded}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function NavbarSideUserInfo({ history }: { history: History }) {
<ProfileLink history={history} username={activeUser!.username} addAccount={addAccount}>
<UserAvatar username={activeUser!.username} size="medium" />
</ProfileLink>
{activeUser!.data && (
{activeUser?.data.__loaded && (
<div>
<div className="font-semibold">{activeUser?.username}</div>
<div className="flex flex-col text-xs">
Expand Down

0 comments on commit f51281f

Please sign in to comment.