Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

feat: use display_name for sign up

AykutSarac8e080da8b10c
diff --git a/src/pages/sign-up.tsx b/src/pages/sign-up.tsx
index 061e2e03..62b17c20 100644
--- a/src/pages/sign-up.tsx
+++ b/src/pages/sign-up.tsx
@@ -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: "",
});
@@ -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 }) => {
@@ -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"