@ethnolib/language-chooser-react-hook 0.0.3 → 0.0.4

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.
Files changed (3) hide show
  1. package/index.js +1 -1
  2. package/index.mjs +1 -1
  3. package/package.json +1 -1
package/index.mjs CHANGED
@@ -294105,7 +294105,7 @@ const Yh = (u) => {
294105
294105
  }
294106
294106
  const A = !!y && // either a script is selected or there are no scripts for the selected language
294107
294107
  (!!p || ((Na = y == null ? void 0 : y.scripts) == null ? void 0 : Na.length) === 0) && // if unlisted language, name and country are required
294108
- (!Eh || v.dialect !== "" && ((ba = v.region) == null ? void 0 : ba.name) !== ""), j = Ey(() => !g || g.length < 2 ? [] : ia(g, u), [g]);
294108
+ (!Eh(y) || v.dialect !== "" && ((ba = v.region) == null ? void 0 : ba.name) !== ""), j = Ey(() => !g || g.length < 2 ? [] : ia(g, u), [g]);
294109
294109
  function W(X, F) {
294110
294110
  var xa;
294111
294111
  h(void 0), k(void 0), M();
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "A React hook providing the logic for a language chooser",
4
4
  "author": "SIL Global",
5
5
  "license": "MIT",
6
- "version": "0.0.3",
6
+ "version": "0.0.4",
7
7
  "main": "./index.js",
8
8
  "types": "./index.d.ts",
9
9
  "scripts": {