Skip to content

Commit

Permalink
remove feature flag from registration
Browse files Browse the repository at this point in the history
  • Loading branch information
estevamfurtado committed Nov 1, 2024
1 parent a8d15e5 commit efc63ae
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions components/SuccessDonation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,8 @@ import { red } from "@material-ui/core/colors";
import axios from "axios";
import styles from "./Form.module.css";

import RoxContainer from "../services/rox/RoxContainer";
import service from "../services/rox/RoxService";
import { DonationContext } from "./contexts/DonationContext";

service(RoxContainer);

function createYearList(): Array<number> {
const year = new Date().getFullYear();
const range = 89;
Expand Down Expand Up @@ -109,8 +105,6 @@ export const SuccessDonation = () => {
const [errorUrl, setErrorUrl] = useState(false);

const isUserAlreadyRegistered = () => donation.userExists.value;
const registrationFlagEnabled = () =>
JSON.parse(RoxContainer.shouldShowRegistrationForm.getValue());

const yearsList = createYearList();

Expand Down Expand Up @@ -242,9 +236,7 @@ export const SuccessDonation = () => {
<h1>Muito obrigado!</h1>
<p>Agradecemos por escolher fazer parte dessa iniciativa.</p>
<p>Enviaremos também um email de confirmando sua doação.</p>
{registrationFlagEnabled() &&
!isUserAlreadyRegistered() &&
!signupFinish ? (
{!isUserAlreadyRegistered() && !signupFinish ? (
<>
<p>
Conclua o seu cadastro para somar pontos à sua turma no Ranking
Expand Down

0 comments on commit efc63ae

Please sign in to comment.