Skip to content

Commit 25dc010

Browse files
committed
Fix typerrors and lint
1 parent 415b9f1 commit 25dc010

File tree

4 files changed

+2
-15
lines changed

4 files changed

+2
-15
lines changed

src/libs/ValidationUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function getFieldRequiredErrors<TFormID extends OnyxFormKey>(values: FormOnyxVal
103103
const errors: FormInputErrors<TFormID> = {};
104104

105105
requiredFields.forEach((fieldKey) => {
106-
if (isRequiredFulfilled(values[fieldKey] as keyof FormOnyxValues)) {
106+
if (isRequiredFulfilled(values[fieldKey])) {
107107
return;
108108
}
109109

src/types/form/ReimbursementAccountForm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const INPUT_IDS = {
5151
AMOUNT3: 'amount3',
5252
} as const;
5353

54-
type InputIDs = DeepValueOf<typeof INPUT_IDS>;
54+
type InputID = DeepValueOf<typeof INPUT_IDS>;
5555

5656
type BeneficialOwnersStepBaseProps = {
5757
[INPUT_IDS.BENEFICIAL_OWNER_INFO_STEP.OWNS_MORE_THAN_25_PERCENT]: boolean;

src/types/form/WorkspaceProfileDescriptionForm.ts

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/types/form/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,4 @@ export type {WorkspaceRateAndUnitForm} from './WorkspaceRateAndUnitForm';
3434
export type {WorkspaceSettingsForm} from './WorkspaceSettingsForm';
3535
export type {ReportPhysicalCardForm} from './ReportPhysicalCardForm';
3636
export type {WorkspaceDescriptionForm} from './WorkspaceDescriptionForm';
37-
export type {WorkspaceProfileDescriptionForm} from './WorkspaceProfileDescriptionForm';
3837
export type {default as Form} from './Form';

0 commit comments

Comments
 (0)