fix empty nostr relay settings

This commit is contained in:
keyan 2023-01-06 19:18:03 -06:00
parent 2d012ba7fe
commit eada9d92ad
1 changed files with 1 additions and 1 deletions

View File

@ -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 }) => {