Skip to content

Commit

Permalink
clube de beneficios para card partner
Browse files Browse the repository at this point in the history
  • Loading branch information
decobot committed Nov 14, 2024
1 parent f65fa66 commit 4122bf8
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions components/ui/PrivatePageControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ function PrivatePageControl(_props: Props) {
email: string;
plan: string;
lecoupon_smartLink?: string;
lecoupon_free_month_date?: string;
};
};

Expand Down Expand Up @@ -90,16 +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_PARTNER" &&
r.dataProfile.lecoupon_free_month_date &&
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 4122bf8

Please sign in to comment.