willba-component-library 0.1.79 → 0.1.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "willba-component-library",
3
- "version": "0.1.79",
3
+ "version": "0.1.80",
4
4
  "description": "A stroybook 6 with TypeScript demo",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.esm.js",
@@ -74,11 +74,11 @@ export const useFilterBar = ({
74
74
  tabs?.length === 1 ? tabs[0] : tabs?.find((tab) => tab.default)
75
75
 
76
76
  const currentPath =
77
- defaultTab?.path === Pages.EVENTS ||
78
- window.location.pathname.includes(Pages.EVENTS)
77
+ window.location.pathname.includes(Pages.EVENTS) ||
78
+ defaultTab?.path === Pages.EVENTS
79
79
  ? Pages.EVENTS
80
- : defaultTab?.path === Pages.ROOMS ||
81
- window.location.pathname.includes(Pages.ROOMS)
80
+ : window.location.pathname.includes(Pages.ROOMS) ||
81
+ defaultTab?.path === Pages.ROOMS
82
82
  ? Pages.ROOMS
83
83
  : Pages.EVENTS
84
84