Skip to content

Commit

Permalink
fix erro null currentSubscription
Browse files Browse the repository at this point in the history
  • Loading branch information
AldemirLucas committed Dec 5, 2023
1 parent 8828f43 commit c398549
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion next/pages/user/[username].js
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,7 @@ const PlansAndPayment = ({ userData }) => {
{name: "Suporte prioritário via email e Discord"}]}
}

const planActive = userData?.currentSubscription.length > 0
const planActive = userData?.currentSubscription.length > 0 && userData?.currentSubscription[0] ==! undefined
const defaultResource = resources["BD Gratis"]
const planResource = resources[userData?.currentSubscription]

Expand Down

0 comments on commit c398549

Please sign in to comment.