diff --git a/components/FloatInputTextField.vue b/components/FloatInputTextField.vue index 7fecfb0..6609e35 100644 --- a/components/FloatInputTextField.vue +++ b/components/FloatInputTextField.vue @@ -30,9 +30,9 @@ const { value: inputValue, errorMessage, handleBlur, - handleChange, + meta } = useField(name, undefined, { - initialValue: props.value, + initialValue: props.value }); const invalid = computed(() => errorMessage.value ? true : undefined); @@ -42,13 +42,13 @@ const invalid = computed(() => errorMessage.value ? true : undefined);
- {{ errorMessage }} + {{ errorMessage }}
diff --git a/pages/login.vue b/pages/login.vue index 8754989..7336a7c 100644 --- a/pages/login.vue +++ b/pages/login.vue @@ -4,7 +4,7 @@ import * as zod from 'zod'; const zodSchema = zod.object({ username: zod.string().min(1, { message: 'This is required' }), - password: zod.string().min(3), + password: zod.string().min(3, { message: 'Password is required longer than 3' }), }); const schema = toTypedSchema(zodSchema);