@saasmakers/ui 1.3.4 → 1.3.5

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.
@@ -22,7 +22,7 @@ const validationMessage = computed(() => {
22
22
  return unref(firstError.$message)
23
23
  }
24
24
 
25
- switch (false) {
25
+ switch (true) {
26
26
  case ruleIsInvalid(props.validation.alpha): {
27
27
  return t('alpha')
28
28
  }
@@ -114,7 +114,7 @@ function ruleIsInvalid(rule: unknown) {
114
114
  if (rule && typeof rule === 'object' && '$invalid' in rule) {
115
115
  return (rule as {
116
116
  $invalid: boolean
117
- }).$invalid
117
+ }).$invalid === true
118
118
  }
119
119
 
120
120
  return false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saasmakers/ui",
3
- "version": "1.3.4",
3
+ "version": "1.3.5",
4
4
  "private": false,
5
5
  "description": "Reusable Nuxt UI components for SaaS Makers projects",
6
6
  "license": "MIT",