@shakerquiz/utilities 0.5.13 → 0.5.14

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,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@shakerquiz/utilities",
4
- "version": "0.5.13",
4
+ "version": "0.5.14",
5
5
  "author": "yurkimus <yurkimus@gmail.com>",
6
6
  "license": "ISC",
7
7
  "scripts": {
@@ -20,9 +20,9 @@ export var CitiesModeTitle = {
20
20
  export var getCitiesMode = value => {
21
21
  if (value === 'all')
22
22
  return CitiesMode.all
23
- else if (value.length > 1)
23
+ else if (value?.length > 1)
24
24
  return CitiesMode.many
25
- else if (value.length === 1)
25
+ else if (value?.length === 1)
26
26
  return CitiesMode.single
27
27
  else
28
28
  return CitiesMode.none