diff --git a/.changes/fix-signup-birthday.md b/.changes/fix-signup-birthday.md new file mode 100644 index 0000000..4d8393a --- /dev/null +++ b/.changes/fix-signup-birthday.md @@ -0,0 +1,7 @@ +--- +"algohub": patch:feat +--- + +Fixed the issue of not being able to sign up without a birthday. + +> All fields are now not required. diff --git a/src/views/signup.vue b/src/views/signup.vue index daa994d..6d89f25 100644 --- a/src/views/signup.vue +++ b/src/views/signup.vue @@ -183,10 +183,10 @@ const onUpdateProfile = async ({ valid, states }: { id: accountStore.account!.id!, token: accountStore.account!.token!, profile: { - nickname: states.nickname!.value, - signature: states.signature!.value, - sex: states.sex!.value, - birthday: states.birthday!.value.toISOString().replace('Z', ''), + nickname: states.nickname?.value, + signature: states.signature?.value, + sex: states.sex?.value, + birthday: states.birthday?.value.toISOString().replace('Z', ''), avatar: accountStore.account!.avatar, } })