Skip to content

Commit d1a1982

Browse files
authored
Merge pull request #90235 from Expensify/fix-typemenu-shouldredirect
[No QA] Fix ESLint and typecheck failures on main
2 parents 0a322d6 + 98ff362 commit d1a1982

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/pages/ReimbursementAccount/USD/BeneficialOwnerInfo/subSteps/BeneficialOwnerDetailsFormSubSteps/ConfirmationUBO.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import ConfirmationStep from '@components/SubStepForms/ConfirmationStep';
33
import useLocalize from '@hooks/useLocalize';
44
import useOnyx from '@hooks/useOnyx';
55
import type {SubStepProps} from '@hooks/useSubStep/types';
6-
import * as ErrorUtils from '@libs/ErrorUtils';
6+
import {getLatestErrorMessage} from '@libs/ErrorUtils';
77
import getValuesForBeneficialOwner from '@pages/ReimbursementAccount/USD/utils/getValuesForBeneficialOwner';
88
import CONST from '@src/CONST';
99
import ONYXKEYS from '@src/ONYXKEYS';
@@ -19,7 +19,7 @@ function ConfirmationUBO({onNext, onMove, isEditing, beneficialOwnerBeingModifie
1919
const [reimbursementAccountDraft] = useOnyx(ONYXKEYS.FORMS.REIMBURSEMENT_ACCOUNT_FORM_DRAFT);
2020

2121
const values = getValuesForBeneficialOwner(beneficialOwnerBeingModifiedID, reimbursementAccountDraft);
22-
const error = reimbursementAccount ? ErrorUtils.getLatestErrorMessage(reimbursementAccount) : '';
22+
const error = reimbursementAccount ? getLatestErrorMessage(reimbursementAccount) : '';
2323

2424
const summaryItems = [
2525
{

tests/unit/Search/SearchUIUtilsTest.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7079,7 +7079,6 @@ describe('SearchUIUtils', () => {
70797079
savedSearches: {},
70807080
isOffline: false,
70817081
defaultExpensifyCard: undefined,
7082-
shouldRedirectToExpensifyClassic: false,
70837082
draftTransactionIDs: [],
70847083
isTrackIntentUser: true,
70857084
});

0 commit comments

Comments
 (0)