mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-04-02 04:36:37 +00:00
fix: user can't update account if email is empty
This commit is contained in:
@@ -46,7 +46,10 @@
|
||||
});
|
||||
type FormSchema = typeof formSchema;
|
||||
|
||||
const { inputs, ...form } = createForm<FormSchema>(formSchema, account);
|
||||
const { inputs, ...form } = createForm<FormSchema>(formSchema, {
|
||||
...account,
|
||||
email: account.email || ''
|
||||
});
|
||||
|
||||
function onNameInput() {
|
||||
if (!hasManualDisplayNameEdit) {
|
||||
|
||||
Reference in New Issue
Block a user