fix: 🐛
This commit is contained in:
parent
7826364003
commit
b576afb971
6 changed files with 23 additions and 11 deletions
|
|
@ -29,6 +29,9 @@ export default function RelayUrls({ relaySetId }: { relaySetId: string }) {
|
|||
const saveNewRelayUrl = () => {
|
||||
if (newRelayUrl === '') return
|
||||
const normalizedUrl = normalizeUrl(newRelayUrl)
|
||||
if (!normalizedUrl) {
|
||||
return setNewRelayUrlError(t('Invalid relay URL'))
|
||||
}
|
||||
if (relaySet.relayUrls.includes(normalizedUrl)) {
|
||||
return setNewRelayUrlError(t('Relay already exists'))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue