Skip to content

Commit

Permalink
Merge pull request #349 from w3bdesign/develop
Browse files Browse the repository at this point in the history
Fix SonarCloud warnings
  • Loading branch information
w3bdesign authored Feb 14, 2021
2 parents 1b67502 + adc18b9 commit 6882940
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions components/Header/Header.component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import Navbar from './Navbar.component';
* Header for the application.
* Adds title and some meta properties
*/
const Header = ({title}) => {
const Header = ({ title }) => {
return (
<>
<Head>
<title>Nextjs Ecommerce with Woocommerce {title && title}</title>
<title>Nextjs Ecommerce with WooCommerce {title ? title : ''}</title>
<meta name="description" content="WooCommerce webshop" />
<meta name="keywords" content="Ecommerce, WooCommerce" />
<meta
Expand Down
2 changes: 1 addition & 1 deletion pages/kategori/[slug].js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const Produkt = ({ categoryName, products }) => {

return (
<>
<Header title={`- ${categoryName && categoryName}`} />
<Header title={`- ${categoryName ? categoryName : ''}`} />
{products ? (
<>
<PageTitle title={categoryName} marginleft="50" />
Expand Down
2 changes: 1 addition & 1 deletion pages/produkt/[slug].js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const Produkt = ({ product }) => {

return (
<>
<Header title={`- ${product.name && product.name}`} />
<Header title={`- ${product.name ? product.name : ''}`} />
{product ? (
<SingleProduct product={product} />
) : (
Expand Down

1 comment on commit 6882940

@vercel
Copy link

@vercel vercel bot commented on 6882940 Feb 14, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.