fix article

This commit is contained in:
2023-11-01 15:37:50 +07:00
parent c8d04f4695
commit f01074ea9f
4 changed files with 62 additions and 50 deletions

View File

@@ -12,11 +12,11 @@ import { User } from '@shared/user';
import { useEvent } from '@utils/hooks/useEvent';
export function ArticleNoteScreen() {
const { id } = useParams();
const navigate = useNavigate();
const replyRef = useRef(null);
const { id } = useParams();
const naddr = id.startsWith('naddr') ? (nip19.decode(id).data as AddressPointer) : null;
const { status, data } = useEvent(id, naddr);