Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
ivladu-plenty committed Nov 29, 2024
1 parent 9b2db97 commit f04a8fc
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions apps/web/composables/useStructuredData/useStructuredData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,14 +191,11 @@ export const useStructuredData: useStructuredDataReturn = () => {
const route = useRoute();
let robotsContent: string | undefined = '';

if (
robotsContent =
(!product.seoSettings?.forceRobotsValue && Object.keys(route.query).length > 0) ||
product.seoSettings?.forceNoIndex
) {
robotsContent = 'noindex';
} else {
robotsContent = product.seoSettings?.robots;
}
? 'noindex'
: product.seoSettings?.robots;

useHead({
meta: [{ name: 'robots', content: robotsContent }],
Expand Down

0 comments on commit f04a8fc

Please sign in to comment.