mirror of
https://git.v0l.io/Kieran/dtan.git
synced 2025-01-18 04:41:32 +00:00
fix: state error
This commit is contained in:
parent
d42b139711
commit
40d477a35b
@ -11,7 +11,7 @@ import { Button } from "../element/button";
|
||||
export function TorrentPage() {
|
||||
const location = useLocation();
|
||||
const { id } = useParams();
|
||||
const evState = "kind" in location.state ? (location.state as TaggedNostrEvent) : undefined;
|
||||
const evState = location.state && "kind" in location.state ? (location.state as TaggedNostrEvent) : undefined;
|
||||
|
||||
const rb = new RequestBuilder("torrent:event");
|
||||
rb.withFilter()
|
||||
|
Loading…
Reference in New Issue
Block a user