Skip to content

Commit

Permalink
fix: Error with null profile (pancakeswap#493)
Browse files Browse the repository at this point in the history
  • Loading branch information
hachiojidev authored Feb 20, 2021
1 parent 2dd6e42 commit b8d6e8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/Profile/components/ClaimPointsCallout .tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const ClaimPointsCallout = () => {
)
}

if (!profile.isActive) {
if (!profile?.isActive) {
return null
}

Expand Down

0 comments on commit b8d6e8e

Please sign in to comment.