@selfcommunity/react-ui 0.10.5-payments.223 → 0.10.5-payments.224

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.
@@ -74,7 +74,7 @@ function DefaultDrawerContent(inProps) {
74
74
  };
75
75
  // Order categories
76
76
  (0, react_1.useEffect)(() => {
77
- if (scUserContext.user && showAllCategories) {
77
+ if (!scUserContext.user || (scUserContext.user && showAllCategories)) {
78
78
  setCategoriesOrdered((0, utils_1.sortByAttr)(categories, 'order'));
79
79
  }
80
80
  else {
@@ -72,7 +72,7 @@ export default function DefaultDrawerContent(inProps) {
72
72
  };
73
73
  // Order categories
74
74
  useEffect(() => {
75
- if (scUserContext.user && showAllCategories) {
75
+ if (!scUserContext.user || (scUserContext.user && showAllCategories)) {
76
76
  setCategoriesOrdered(sortByAttr(categories, 'order'));
77
77
  }
78
78
  else {