Skip to content

Commit

Permalink
feat: use display_name for sign up
Browse files Browse the repository at this point in the history
  • Loading branch information
AykutSarac committed Mar 13, 2024
1 parent 946056c commit 8e080da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/sign-up.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const SignUp = () => {
const [loading, setLoading] = React.useState(false);
const [done, setDone] = React.useState(false);
const [userData, setUserData] = React.useState({
name: "",
display_name: "",
email: "",
password: "",
});
Expand All @@ -36,7 +36,7 @@ const SignUp = () => {
email: userData.email,
password: userData.password,
options: {
data: { name: userData.name },
data: { display_name: userData.display_name },
},
})
.then(({ error }) => {
Expand Down Expand Up @@ -78,7 +78,7 @@ const SignUp = () => {
<form onSubmit={onSubmit}>
<Stack>
<TextInput
onChange={e => setUserData(d => ({ ...d, name: e.target.value }))}
onChange={e => setUserData(d => ({ ...d, display_name: e.target.value }))}
required
label="Name"
placeholder="John Doe"
Expand Down

0 comments on commit 8e080da

Please sign in to comment.