Skip to content

Commit 26e6284

Browse files
authored
fix(signup): fix optional fields (#93)
1 parent bd64068 commit 26e6284

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.changes/fix-signup-birthday.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"algohub": patch:feat
3+
---
4+
5+
Fixed the issue of not being able to sign up without a birthday.
6+
7+
> All fields are now not required.

src/views/signup.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,10 @@ const onUpdateProfile = async ({ valid, states }: {
183183
id: accountStore.account!.id!,
184184
token: accountStore.account!.token!,
185185
profile: {
186-
nickname: states.nickname!.value,
187-
signature: states.signature!.value,
188-
sex: states.sex!.value,
189-
birthday: states.birthday!.value.toISOString().replace('Z', ''),
186+
nickname: states.nickname?.value,
187+
signature: states.signature?.value,
188+
sex: states.sex?.value,
189+
birthday: states.birthday?.value.toISOString().replace('Z', ''),
190190
avatar: accountStore.account!.avatar,
191191
}
192192
})

0 commit comments

Comments
 (0)