Skip to content

Commit

Permalink
refactor: useInputValues의 transformedValue 값을 nullish coalescing 개선
Browse files Browse the repository at this point in the history
  • Loading branch information
bytrustu committed Apr 9, 2024
1 parent fcc138c commit 6d6a982
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/components/Input/hooks/useInputValues.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const useInputValues = (
};

const valid = options?.validate?.(values) ?? true;
const transformedValue = options?.transform ? options.transform(values) : values.join('');
const transformedValue = options?.transform?.(values) ?? values.join('');

return { value: values, transformedValue, valid, update: updateValues };
};

0 comments on commit 6d6a982

Please sign in to comment.