fix: 🐛

This commit is contained in:
codytseng
2025-03-04 09:36:55 +08:00
parent 7e5328f2b1
commit 477f6eebdc
2 changed files with 5 additions and 2 deletions

View File

@@ -24,7 +24,10 @@ export default function SendOnlyToSwitch({
const [urls, setUrls] = useState<string[]>([])
useEffect(() => {
if (!parentEvent) return
if (!parentEvent) {
setUrls(relayUrls)
return
}
const isProtected = isProtectedEvent(parentEvent)
const seenOn = client.getSeenEventRelayUrls(parentEvent.id)
if (isProtected && seenOn.length) {