Skip to content

Commit

Permalink
bug fix: gracefully handle wallet portal nil user.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonkernel committed Sep 16, 2022
1 parent d5c62e6 commit e820efe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/wallet/src/views/Portal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ const memberCards = [
}
]

const LinkCards = ({ user: { role }, cardConfig }) => {
const LinkCards = ({ user, cardConfig }) => {
const role = user ? user.role : EXTERNAL_ROLE
return cardConfig
.filter(({ minRole }) => role <= minRole)
.map((card, index) => {
Expand Down

0 comments on commit e820efe

Please sign in to comment.