From 9eafe271a5e4de827b62e423f2971d3c7db79b6b Mon Sep 17 00:00:00 2001 From: "Krishna (via MelvinBot)" Date: Wed, 18 Mar 2026 17:14:59 +0000 Subject: [PATCH 1/2] Add reasonForLeaving as required field in CloseAccountPage validation The validate function in CloseAccountPage only checked phoneOrEmail as a required field. This adds reasonForLeaving to the required fields array so users must provide a reason before closing their account. Co-authored-by: Krishna --- src/pages/settings/Security/CloseAccountPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; From 0863d723721ccb5646ada81f7b3d5ab2710434a0 Mon Sep 17 00:00:00 2001 From: "Krishna (via MelvinBot)" Date: Wed, 18 Mar 2026 17:30:07 +0000 Subject: [PATCH 2/2] Fix: make reasonAttributes required in SearchLoadingSkeleton to match SearchRowSkeleton Co-authored-by: Krishna --- src/components/Search/SearchLoadingSkeleton.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {