Fix names still in french

This commit is contained in:
pikiou
2021-12-08 11:09:33 +01:00
parent c64bf376f8
commit 6bd3a9595f
9 changed files with 52 additions and 48 deletions

View File

@@ -4,7 +4,7 @@ import { toast } from "react-toastify"
import _ from "lodash"
import styles from "./styles.module.scss"
import { fetchPreMemberAdd } from "../../store/preVolunteerAdd"
import { fetchPreVolunteerAdd } from "../../store/preVolunteerAdd"
import { AppDispatch, AppState } from "../../store"
interface Props {
@@ -36,7 +36,7 @@ const RegisterForm = ({ dispatch }: Props): JSX.Element => {
const onSubmit = () => {
if (firstname && lastname && email && mobile && !sending) {
dispatch(
fetchPreMemberAdd({
fetchPreVolunteerAdd({
firstname,
lastname,
email,
@@ -60,13 +60,13 @@ const RegisterForm = ({ dispatch }: Props): JSX.Element => {
}
}
const { error, entities: preMember } = useSelector(
(state: AppState) => state.preMemberAdd,
const { error, entities: preVolunteer } = useSelector(
(state: AppState) => state.preVolunteerAdd,
shallowEqual
)
let sendSuccess
if (!_.isEmpty(preMember)) {
if (!_.isEmpty(preVolunteer)) {
if (sending) {
setSending(false)
}
@@ -74,7 +74,7 @@ const RegisterForm = ({ dispatch }: Props): JSX.Element => {
}
let sendError
if (error && _.isEmpty(preMember)) {
if (error && _.isEmpty(preVolunteer)) {
if (sending) {
setSending(false)
}