From a0c1445aa3fee982bcd3ff03f8daf5192443a4f9 Mon Sep 17 00:00:00 2001 From: Eduardo Date: Tue, 23 Jan 2024 12:41:22 +0100 Subject: [PATCH] Add null support to errors instead of changing the value --- src/CONST.ts | 2 +- src/types/onyx/Account.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CONST.ts b/src/CONST.ts index eb2e77404f72..0b10e5767328 100755 --- a/src/CONST.ts +++ b/src/CONST.ts @@ -831,7 +831,7 @@ const CONST = { }, WEEK_STARTS_ON: 1, // Monday DEFAULT_TIME_ZONE: {automatic: true, selected: 'America/Los_Angeles'}, - DEFAULT_ACCOUNT_DATA: {errors: undefined, success: '', isLoading: false}, + DEFAULT_ACCOUNT_DATA: {errors: null, success: '', isLoading: false}, DEFAULT_CLOSE_ACCOUNT_DATA: {errors: null, success: '', isLoading: false}, FORMS: { LOGIN_FORM: 'LoginForm', diff --git a/src/types/onyx/Account.ts b/src/types/onyx/Account.ts index 0ea3e05e8d6a..4e7c5396b649 100644 --- a/src/types/onyx/Account.ts +++ b/src/types/onyx/Account.ts @@ -50,7 +50,7 @@ type Account = { /** The active policy ID. Initiating a SmartScan will create an expense on this policy by default. */ activePolicyID?: string; - errors?: OnyxCommon.Errors; + errors?: OnyxCommon.Errors | null; success?: string; codesAreCopied?: boolean; twoFactorAuthStep?: TwoFactorAuthStep;