Skip to content

Commit

Permalink
refactor: xo feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
mfranzke committed Dec 5, 2023
1 parent 2de9e4c commit ad3b9a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion showcases/patternhub/components/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const DefaultComponent = ({ title, variants }: DefaultComponentProps) => {
}, [router]);

const getHref = (variant: DefaultComponentVariants) =>
typeof window !== 'undefined' && window.location.origin
window?.location.origin
? `${window?.location?.href}?page=${variant.name.toLowerCase()}`
: '';

Expand Down

0 comments on commit ad3b9a9

Please sign in to comment.