MCPcopy
hub / github.com/OpenHealthForAll/open-health / isFieldInvalid

Function isFieldInvalid

src/components/onboarding/PersonalInfo.tsx:29–31  ·  view source on GitHub ↗
(field: keyof PersonalInfoData)

Source from the content-addressed store, hash-verified

27 const t = useTranslations('Onboarding.personalInfo');
28
29 const isFieldInvalid = (field: keyof PersonalInfoData) => {
30 return touchedFields[field] && !value[field];
31 };
32
33 const handleChange = (field: keyof PersonalInfoData, fieldValue: string) => {
34 const newValue = {...value, [field]: fieldValue};

Callers 1

PersonalInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected