Commit c6219c4e authored by TJHeeringa's avatar TJHeeringa

Properly referenced fields on Association

parent 1aa6a1c1
......@@ -16,7 +16,7 @@ const FontAwesomeIconHolder = ({ icon, ...rest_props }) => {
const classes = useStyles(theme);
return (
<FontAwesomeIcon className={"MuiSvgIcon-root makeStyles-icon-22 MuiSvgIcon-colorAction"} icon={icon} />
<FontAwesomeIcon className={["MuiSvgIcon-root MuiSvgIcon-colorAction", classes.icon].join(" ")} icon={icon} />
);
};
......
......@@ -134,7 +134,7 @@ export const AssociationForm = (props) => {
<IconHolder Icon={WhatsAppIcon}/>
<TextField
name={"whatsapp"}
value={association.phone_number}
value={association.whatsapp}
onChange={(event)=>handleAssociationChange("whatsapp",event.target.value)}
/>
</Wrapper>
......@@ -142,7 +142,7 @@ export const AssociationForm = (props) => {
<FontAwesomeIconHolder icon={["fab", "discord"]}/>
<TextField
name={"discord"}
value={association.phone_number}
value={association.discord}
onChange={(event)=>handleAssociationChange("discord",event.target.value)}
/>
</Wrapper>
......@@ -177,7 +177,7 @@ export const AssociationForm = (props) => {
<TextField
name={"zip_code"}
value={association.postal_zipcode}
onChange={(event)=>handleAssociationChange("zip_code",event.target.value)}
onChange={(event)=>handleAssociationChange("postal_zipcode",event.target.value)}
/>
</Wrapper>
<Wrapper>
......@@ -185,7 +185,7 @@ export const AssociationForm = (props) => {
<TextField
name={"city"}
value={association.postal_city}
onChange={(event)=>handleAssociationChange("city",event.target.value)}
onChange={(event)=>handleAssociationChange("postal_city",event.target.value)}
/>
</Wrapper>
<Wrapper>
......@@ -193,7 +193,7 @@ export const AssociationForm = (props) => {
<TextField
name={"address"}
value={association.postal_address}
onChange={(event)=>handleAssociationChange("address",event.target.value)}
onChange={(event)=>handleAssociationChange("postal_address",event.target.value)}
/>
</Wrapper>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment