diff --git a/src/libs/API/parameters/UnassignCompanyCard.ts b/src/libs/API/parameters/UnassignCompanyCard.ts index 10e04aa13f82..d433d9e537c3 100644 --- a/src/libs/API/parameters/UnassignCompanyCard.ts +++ b/src/libs/API/parameters/UnassignCompanyCard.ts @@ -1,6 +1,6 @@ type UnassignCompanyCard = { authToken?: string | null; - cardID: string; + cardID: number; }; export default UnassignCompanyCard; diff --git a/src/libs/API/parameters/UpdateCompanyCard.ts b/src/libs/API/parameters/UpdateCompanyCard.ts index 3d5eb3c580cb..113f0e1d7511 100644 --- a/src/libs/API/parameters/UpdateCompanyCard.ts +++ b/src/libs/API/parameters/UpdateCompanyCard.ts @@ -1,6 +1,6 @@ type UpdateCompanyCard = { authToken?: string | null; - cardID: string; + cardID: number; }; export default UpdateCompanyCard; diff --git a/src/libs/actions/CompanyCards.ts b/src/libs/actions/CompanyCards.ts index 2955a62f28c7..b66967cb603f 100644 --- a/src/libs/actions/CompanyCards.ts +++ b/src/libs/actions/CompanyCards.ts @@ -17,6 +17,7 @@ import * as PolicyUtils from '@libs/PolicyUtils'; import * as ReportUtils from '@libs/ReportUtils'; import CONST from '@src/CONST'; import ONYXKEYS from '@src/ONYXKEYS'; +import type {Card} from '@src/types/onyx'; import type {AssignCard, AssignCardData} from '@src/types/onyx/AssignCard'; import type {AddNewCardFeedData, AddNewCardFeedStep, CompanyCardFeed} from '@src/types/onyx/CardFeeds'; import type {OnyxData} from '@src/types/onyx/Request'; @@ -232,8 +233,9 @@ function assignWorkspaceCompanyCard(policyID: string, data?: Partial { setIsUnassignModalVisible(false); - CompanyCards.unassignWorkspaceCompanyCard(workspaceAccountID, cardID, bank); + CompanyCards.unassignWorkspaceCompanyCard(workspaceAccountID, bank, card); Navigation.goBack(); }; @@ -168,6 +170,7 @@ function WorkspaceCompanyCardDetailsPage({route}: WorkspaceCompanyCardDetailsPag >