Skip to content

Commit

Permalink
fix: type fix with HashChangeEvent and DOM Event
Browse files Browse the repository at this point in the history
  • Loading branch information
indyteo committed Sep 10, 2024
1 parent 8b20347 commit 114377b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/pages/ShowPost/ShowPost.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export default class ShowPostPage extends React.Component<ShowPostPageProps, Sho
this.setState({ editMode: true })
}

private handleHashChange = (e?: HashChangeEvent) => {
private handleHashChange = (e?: Event) => {
const hash = window.location.hash
const result = /#comment-([0-9]+)/.exec(hash)

Expand Down

0 comments on commit 114377b

Please sign in to comment.