Skip to content

Commit

Permalink
clube de beneficios redirect private
Browse files Browse the repository at this point in the history
  • Loading branch information
decobot committed Nov 6, 2024
1 parent e38df03 commit ed521ff
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions components/ui/PrivatePageControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,14 @@ function PrivatePageControl(_props: Props) {
r.dataProfile.lecoupon_smartLink
) {
window.location.href = r.dataProfile.lecoupon_smartLink;
} else if (
window.location.pathname === "/clube-de-beneficios" &&
currentPlan !== "CARD_PLUS"
) {
alert(
"Faça o upgrade para do seu plano para acessar o Clube de Benefícios",
);
window.location.href = "/minha-conta";
}

const username = r.data.Username;
Expand Down

0 comments on commit ed521ff

Please sign in to comment.