diff --git a/src/libs/CardUtils.ts b/src/libs/CardUtils.ts index 7e5568650594..6252b7265ce3 100644 --- a/src/libs/CardUtils.ts +++ b/src/libs/CardUtils.ts @@ -74,13 +74,13 @@ function getYearFromExpirationDateString(expirationDateString: string) { function formatCardExpiration(expirationDateString: string) { // already matches MM/YY format const dateFormat = /^\d{2}\/\d{4}$/; - if (dateFormat.test(expirationDateString)){ + if (dateFormat.test(expirationDateString)) { return expirationDateString; } const expirationMonth = getMonthFromExpirationDateString(expirationDateString); const expirationYear = getYearFromExpirationDateString(expirationDateString); - + return `${expirationMonth}/${expirationYear}`; } diff --git a/src/pages/settings/Wallet/ExpensifyCardPage.js b/src/pages/settings/Wallet/ExpensifyCardPage.js index d22382aa8f43..cacf35db22a6 100644 --- a/src/pages/settings/Wallet/ExpensifyCardPage.js +++ b/src/pages/settings/Wallet/ExpensifyCardPage.js @@ -235,7 +235,7 @@ function ExpensifyCardPage({ <>