diff --git a/src/components/Search/SearchLoadingSkeleton.tsx b/src/components/Search/SearchLoadingSkeleton.tsx index 4dc4bbf9f2c32..95b769e509d31 100644 --- a/src/components/Search/SearchLoadingSkeleton.tsx +++ b/src/components/Search/SearchLoadingSkeleton.tsx @@ -9,7 +9,7 @@ import CONST from '@src/CONST'; type SearchLoadingSkeletonProps = { containerStyle?: StyleProp; - reasonAttributes?: SkeletonSpanReasonAttributes; + reasonAttributes: SkeletonSpanReasonAttributes; }; function SearchLoadingSkeleton({containerStyle, reasonAttributes}: SearchLoadingSkeletonProps) { diff --git a/src/pages/settings/Security/CloseAccountPage.tsx b/src/pages/settings/Security/CloseAccountPage.tsx index 75a01027dd1e0..1210747c00105 100644 --- a/src/pages/settings/Security/CloseAccountPage.tsx +++ b/src/pages/settings/Security/CloseAccountPage.tsx @@ -61,7 +61,7 @@ function CloseAccountPage() { const userEmailOrPhone = session?.email ? formatPhoneNumber(session.email) : null; const validate = (values: FormOnyxValues): FormInputErrors => { - const errors = getFieldRequiredErrors(values, ['phoneOrEmail'], translate); + const errors = getFieldRequiredErrors(values, ['reasonForLeaving', 'phoneOrEmail'], translate); if (values.phoneOrEmail && userEmailOrPhone) { let isValid = false;