Skip to content

Commit

Permalink
surname -> lastName
Browse files Browse the repository at this point in the history
  • Loading branch information
thomshutt committed Sep 24, 2024
1 parent f0ece55 commit a029c58
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions packages/www/components/Register/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const Register = ({ id, buttonText, onSubmit, loading, errors }) => {
const router = useRouter();
const [organization, setOrganization] = useState("");
const [firstName, setFirstName] = useState("");
const [surname, setSurname] = useState("");
const [lastName, setLastName] = useState("");
const [email, setEmail] = useState("");
const [password, setPassword] = useState("");
const [utmCampaign, setUtmCampaign] = useState("");
Expand Down Expand Up @@ -78,6 +78,7 @@ const Register = ({ id, buttonText, onSubmit, loading, errors }) => {
email,
password: hashedPassword,
firstName,
lastName,
organization,
});
};
Expand Down Expand Up @@ -126,16 +127,16 @@ const Register = ({ id, buttonText, onSubmit, loading, errors }) => {

<TextField
size="3"
id="surname"
id="lastName"
css={{
width: "100%",
mb: "$2",
}}
name="surname"
name="lastName"
type="text"
placeholder="Surname"
value={surname}
onChange={(e) => setSurname(e.target.value)}
placeholder="Last Name"
value={lastName}
onChange={(e) => setLastName(e.target.value)}
/>

<TextField
Expand Down

0 comments on commit a029c58

Please sign in to comment.