fix empty nostr relay settings
This commit is contained in:
parent
2d012ba7fe
commit
eada9d92ad
|
@ -81,7 +81,7 @@ export default function Settings ({ data: { settings } }) {
|
|||
wildWestMode: settings?.wildWestMode,
|
||||
greeterMode: settings?.greeterMode,
|
||||
nostrPubkey: settings?.nostrPubkey || '',
|
||||
nostrRelays: settings?.nostrRelays || ['']
|
||||
nostrRelays: settings?.nostrRelays?.length ? settings?.nostrRelays : ['']
|
||||
}}
|
||||
schema={SettingsSchema}
|
||||
onSubmit={async ({ tipDefault, nostrPubkey, nostrRelays, ...values }) => {
|
||||
|
|
Loading…
Reference in New Issue