fix: 🐛
This commit is contained in:
@@ -38,7 +38,7 @@ export default function SeenOnButton({ event }: { event: Event }) {
|
||||
</button>
|
||||
</DropdownMenuTrigger>
|
||||
<DropdownMenuContent collisionPadding={8}>
|
||||
<DropdownMenuLabel>Seen on</DropdownMenuLabel>
|
||||
<DropdownMenuLabel>{t('Seen on')}</DropdownMenuLabel>
|
||||
<DropdownMenuSeparator />
|
||||
{relays.map((relay) => (
|
||||
<DropdownMenuItem key={relay} onClick={() => push(toRelay(relay))}>
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user