Skip to content

Commit

Permalink
fix: folders with one account in popup
Browse files Browse the repository at this point in the history
  • Loading branch information
alecdwm committed Jul 13, 2023
1 parent 26351d4 commit fbacb2f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,7 @@ export const PortfolioAccounts = () => {
popupOpenEvent("portfolio accounts")
}, [popupOpenEvent])

// if only 1 entry (all accounts) it means that accounts aren't loaded
if ([...portfolioOptions, ...watchedOptions].length <= 1) return null
if ([...portfolioOptions, ...watchedOptions].length <= 0) return null

return (
<FadeIn>
Expand Down

0 comments on commit fbacb2f

Please sign in to comment.