Skip to content

Commit 231b11d

Browse files
committed
feat: bluesky thread finisher
1 parent 48a412c commit 231b11d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

apps/frontend/src/components/launches/helpers/use.values.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
import { useEffect, useMemo } from 'react';
22
import { useForm, useFormContext } from 'react-hook-form';
33
import { classValidatorResolver } from '@hookform/resolvers/class-validator';
4+
import { IsOptional } from 'class-validator';
45

5-
class Empty {}
6+
class Empty {
7+
@IsOptional()
8+
empty: string;
9+
}
610

711
const finalInformation = {} as {
812
[key: string]: {
@@ -53,6 +57,7 @@ export const useValues = (
5357
criteriaMode: 'all',
5458
});
5559

60+
console.log(form.formState.errors);
5661
const getValues = useMemo(() => {
5762
return () => ({
5863
...form.getValues(),

0 commit comments

Comments
 (0)