Skip to content

Commit

Permalink
fix: remove duplicate title on 404 page
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua-Booth committed Jul 18, 2021
1 parent 2cb42d1 commit 2285b3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/views/NoMatch/NoMatch.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ test("should render component", () => {

const header = document.querySelector("h1");

expect(header).toHaveTextContent(/page not found/i);
expect(header).toHaveTextContent(/not found/i);
});

testError(<NoMatch />);
Expand Down
2 changes: 1 addition & 1 deletion src/views/NoMatch/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function NoMatch() {

return (
<main className="content-container">
<Error status={404} title={"Page Not Found"} />
<Error status={404} />
</main>
);
}
Expand Down

0 comments on commit 2285b3f

Please sign in to comment.