diff --git a/src/shared/components/post/post.tsx b/src/shared/components/post/post.tsx index 9651a17f..b6ce7460 100644 --- a/src/shared/components/post/post.tsx +++ b/src/shared/components/post/post.tsx @@ -234,8 +234,8 @@ export class Post extends Component { }: InitialFetchRequest): Promise { const pathSplit = path.split("/"); - const id = pathSplit.at(2) ? Number(pathSplit.at(2)) : undefined; - const comment_id = pathSplit.at(4) ? Number(pathSplit.at(4)) : undefined; + const id = getIdFromString(pathSplit.at(2)); + const comment_id = getIdFromString(pathSplit.at(4)); const postForm: GetPost = { auth,