refactor: 🏗️
This commit is contained in:
parent
49933ee4a2
commit
08995d957c
7 changed files with 28 additions and 32 deletions
|
|
@ -1,5 +1,4 @@
|
|||
import { Button } from '@/components/ui/button'
|
||||
import { relayListToMailboxRelay } from '@/lib/relay'
|
||||
import { normalizeUrl } from '@/lib/url'
|
||||
import { useNostr } from '@/providers/NostrProvider'
|
||||
import { TMailboxRelay, TMailboxRelayScope } from '@/types'
|
||||
|
|
@ -18,7 +17,7 @@ export default function MailboxSetting() {
|
|||
useEffect(() => {
|
||||
if (!relayList) return
|
||||
|
||||
setRelays(relayListToMailboxRelay(relayList))
|
||||
setRelays(relayList.originalRelays)
|
||||
}, [relayList])
|
||||
|
||||
if (!pubkey) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue