All files / src/features/TransactionPanel constants.ts

100% Statements 6/6
75% Branches 3/4
100% Functions 1/1
100% Lines 6/6

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13  53x   53x 152x   152x 66x     86x    
import { capitalizeCardType } from "@utils/index";
export const newCapturedLabel = "Processing";
 
export const getRDRRefundLabel = (cardBrand?: string): string => {
  const brand = capitalizeCardType(cardBrand ?? "visa");
 
  if (cardBrand === "mastercard") {
    return "Mastercard Claims Auto Refund";
  }
 
  return `${brand} RDR Refund`;
};