@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
|
|
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 {
|