Skip to content

Commit

Permalink
fix cardId capitalization in Card.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
JKobrynski committed Jan 15, 2024
1 parent f49bef7 commit 2a9a11b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/libs/actions/Card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ function reportVirtualExpensifyCardFraud(cardID: number) {

/**
* Call the API to deactivate the card and request a new one
* @param cardId - id of the card that is going to be replaced
* @param cardID - id of the card that is going to be replaced
* @param reason - reason for replacement
*/
function requestReplacementExpensifyCard(cardId: number, reason: ReplacementReason) {
function requestReplacementExpensifyCard(cardID: number, reason: ReplacementReason) {
const optimisticData: OnyxUpdate[] = [
{
onyxMethod: Onyx.METHOD.MERGE,
Expand Down Expand Up @@ -88,12 +88,12 @@ function requestReplacementExpensifyCard(cardId: number, reason: ReplacementReas
];

type RequestReplacementExpensifyCardParams = {
cardId: number;
cardID: number;
reason: string;
};

const parameters: RequestReplacementExpensifyCardParams = {
cardId,
cardID,
reason,
};

Expand Down

0 comments on commit 2a9a11b

Please sign in to comment.