refactor: 🏗️

This commit is contained in:
codytseng
2025-01-18 15:43:57 +08:00
parent 49933ee4a2
commit 08995d957c
7 changed files with 28 additions and 32 deletions

View File

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