Skip to content

Commit

Permalink
Add null support to errors instead of changing the value
Browse files Browse the repository at this point in the history
  • Loading branch information
gedu committed Jan 23, 2024
1 parent 5abcdd2 commit a0c1445
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/CONST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/types/onyx/Account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a0c1445

Please sign in to comment.