diff --git a/src/app/core/services/platform/v1/shared/expenses.service.ts b/src/app/core/services/platform/v1/shared/expenses.service.ts index 86266524cf..12558329ea 100644 --- a/src/app/core/services/platform/v1/shared/expenses.service.ts +++ b/src/app/core/services/platform/v1/shared/expenses.service.ts @@ -200,11 +200,8 @@ export class ExpensesService { ): Record { const newQueryParamsCopy = cloneDeep(newQueryParams); if (filters.cardNumbers?.length > 0) { - let cardNumberString = ''; - cardNumberString = filters.cardNumbers.join(','); - cardNumberString = cardNumberString.slice(0, cardNumberString.length); - newQueryParamsCopy['matched_corporate_card_transactions->0->corporate_card_number'] = - 'in.(' + cardNumberString + ')'; + const cardNumberString = filters.cardNumbers.map((cardNumber) => `"${cardNumber}"`).join(','); + newQueryParamsCopy['matched_corporate_card_transactions->0->corporate_card_number'] = `in.(${cardNumberString})`; } return newQueryParamsCopy;