@nualang/nualang-ui-components 0.1.1372 → 0.1.1374

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.
@@ -105,7 +105,8 @@ function Exercise({
105
105
  const noBots = name.toLowerCase() === "bots" && bots?.length === 0;
106
106
  const [botsOpen, setBotsOpen] = useState(noBots ? false : true);
107
107
  // Phrase lists aren't currently available to check during the first render so using the phrases instead
108
- const [phraseListsOpen, setPhraseListsOpen] = useState(phrases && phrases.length > 0 ? true : false);
108
+ const noPhrases = name.toLowerCase() === "phrases" && phrases?.length === 0;
109
+ const [phraseListsOpen, setPhraseListsOpen] = useState(noPhrases ? false : true);
109
110
  const navigate = useNavigate();
110
111
  const params = useParams();
111
112
  const {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nualang/nualang-ui-components",
3
- "version": "0.1.1372",
3
+ "version": "0.1.1374",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "files": [