Fixed eslint issues in multiple files

This commit is contained in:
Luis Alvarez
2021-07-29 22:02:10 -05:00
parent 1b9958688b
commit ab656f86dd
13 changed files with 129 additions and 131 deletions

View File

@@ -18,10 +18,10 @@ export function useSearchMeta(asPath: string) {
c = parts[4]
}
setPathname(path)
if (path !== pathname) setPathname(path)
if (c !== category) setCategory(c)
if (b !== brand) setBrand(b)
}, [asPath])
}, [asPath, pathname, category, brand])
return { pathname, category, brand }
}